Part Number Hot Search : 
AN7259 EZ12D5 IRFR120 22000 16AY6 A815ERW 24LC32AP SNA31
Product Description
Full Text Search
 

To Download WM8804 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 w
DESCRIPTION
The WM8804 is a high performance consumer mode S/PDIF transceiver with support for 1 received channel and 1 transmitted channel. A crystal derived, or externally provided high quality master clock is used to allow low jitter recovery of S/PDIF supplied master clocks. Generation of all typically used audio clocks is possible using the high performance internal PLL. A dedicated CLKOUT pin provides a high drive clock output. A pass through option is provided which allows the device simply to be used to clean up (de-jitter) the received digital audio signals. The device may be used under software control or stand alone hardware control modes. In software control mode, both 2-wire with read back and 3-wire interface modes are supported. Status and error monitoring is built-in and results can be read back over the control interface, on the GPO pins or streamed over the audio data interface in `With Flags' mode (audio data with status flags appended). The audio data interface supports I S, left justified, right justified and DSP audio formats of 16-24 bit word length, with sample rates from 32 to 192ks/s. The device is supplied in a 20-lead Pb-free SSOP package.
2
WM8804
1:1 Digital Interface Transceiver with PLL
FEATURES
* * * * * * S/PDIF (IEC60958-3) compliant. Advanced jitter attenuating PLL with low intrinsic period jitter of 50 ps RMS. S/PDIF recovered clock using PLL, or stand alone crystal derived clock generation. Supports 10 - 27MHz crystal clock frequencies. 2-wire / 3-Wire serial or hardware control interface. Programmable audio data interface modes: I2S, Left, Right Justified or DSP 16/20/24 bit word lengths 1 channel receiver input and 1 channel transmit output. Auto frequency detection / synchronisation. Selectable output status data bits. Up to 3 configurable GPO pins. De-emphasis flag output. Non-audio detection including DOLBYTM and DTSTM. Channel status changed flag. Configurable clock distribution with selectable output MCLK rate of 512fs, 256fs, 128fs and 64fs. 2.7 to 3.6V digital and PLL supply voltages. 20-lead SSOP package.
* * * * * * * * * *
APPLICATIONS
* * * * AV processors and Hi-Fi systems Music industry applications DVD-P/DVD-RW Digital TV
BLOCK DIAGRAM
WOLFSON MICROELECTRONICS plc
To receive regular email updates, sign up at http://www.wolfsonmicro.com/enews/
Production Data, September 2007, Rev 4.1 Copyright (c)2007 Wolfson Microelectronics plc
WM8804 TABLE OF CONTENTS
Production Data
DESCRIPTION .......................................................................................................1 FEATURES.............................................................................................................1 APPLICATIONS .....................................................................................................1 BLOCK DIAGRAM .................................................................................................1 TABLE OF CONTENTS .........................................................................................2 PIN CONFIGURATION...........................................................................................3 ORDERING INFORMATION ..................................................................................3 PIN DESCRIPTION ................................................................................................4 ABSOLUTE MAXIMUM RATINGS.........................................................................5 RECOMMENDED OPERATING CONDITIONS .....................................................6
SUPPLY CURRENT ...................................................................................................... 6
ELECTRICAL CHARACTERISTICS ......................................................................6
MASTER CLOCK TIMING ............................................................................................. 7 MASTER CLOCK TIMING ............................................................................................. 7 DIGITAL AUDIO INTERFACE - MASTER MODE ......................................................... 7 DIGITAL AUDIO INTERFACE - SLAVE MODE ............................................................ 8 CONTROL INTERFACE - 3-WIRE MODE.................................................................... 9 CONTROL INTERFACE - 2-WIRE MODE.................................................................. 10
DEVICE DESCRIPTION.......................................................................................11
INTRODUCTION ......................................................................................................... 11 POWER UP CONFIGURATION .................................................................................. 12 CONTROL INTERFACE OPERATION ........................................................................ 14 HARDWARE CONTROL MODE.................................................................................. 18 DIGITAL ROUTING CONTROL................................................................................... 20 MASTER CLOCK AND PHASE LOCKED LOOP......................................................... 21 SOFTWARE MODE INTERNAL CLOCKING .............................................................. 21 HARDWARE MODE INTERNAL CLOCKING .............................................................. 30 S/PDIF TRANSMITTER............................................................................................... 31 S/PDIF RECEIVER...................................................................................................... 34 GENERAL PURPOSE OUTPUT (GPO) CONFIGURATION ....................................... 43 DIGITAL AUDIO INTERFACE ..................................................................................... 44 AUDIO DATA FORMATS ............................................................................................ 45 REGISTER MAP ......................................................................................................... 52
APPLICATIONS INFORMATION .........................................................................63
RECOMMENDED EXTERNAL COMPONENTS .......................................................... 63
PACKAGE DIMENSIONS ....................................................................................65 IMPORTANT NOTICE ..........................................................................................66
ADDRESS: .................................................................................................................. 66
w
PD Rev 4.1 September 2007 2
Production Data
WM8804
PIN CONFIGURATION
( Top View )
ORDERING INFORMATION
DEVICE WM8804GEDS WM8804GEDS/R Note: Reel quantity = 2,000 TEMPERATURE RANGE -25 to +85oC -25 to +85oC PACKAGE 20-lead SSOP (Pb-free) 20-lead SSOP (Pb-free, tape and reel) MOISTURE SENSITIVITY LEVEL MSL1 MSL1 PEAK SOLDERING TEMPERATURE 260oC 260oC
w
PD Rev 4.1 September 2007 3
WM8804 PIN DESCRIPTION
PIN 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Notes: 1. 2. Digital input pins have Schmitt trigger input buffers. Refer to Table 6 Device Configuration at Power up or Hardware Reset NAME SCLK GPO0 / SWIFMODE SDIN / HWMODE SDOUT / GPO2 CSB / GPO1 RESETB PVDD PGND CLKOUT XOP XIN DOUT DIN BCLK LRCLK MCLK TX0 DGND DVDD RX0 TYPE Digital In/Out Digital In/Out Digital Input Digital In/Out Digital In/Out Digital Input Supply Supply Digital Out Digital Output Digital Input Digital Out Digital In Digital In/Out Digital In/Out Digital In/Out Digital Out Supply Supply Digital In DESCRIPTION
Production Data
Control interface clock / GPO in hardware control mode. See note 2. General purpose digital output or selected functionality at hardware reset. See note 2. Control interface data input and hardware/software mode select at hardware reset. See note 2. Control interface data output in 3-wire software control mode/ GPO in hardware control mode or 2-wire software control mode. See note 2. Chip select / GPO in hardware control mode or 2-wire software control Mode. See note 2 System reset (active low) PLL core supply PLL ground High drive clock output at 64fs, 128fs, 256fs and 512fs Crystal output Crystal input Audio interface data output Audio interface data input Audio interface bit clock Audio interface left/right word clock Master clock input or output S/PDIF transmit channel Digital ground Digital core supply S/PDIF receive channel
w
PD Rev 4.1 September 2007 4
Production Data
WM8804
ABSOLUTE MAXIMUM RATINGS
Absolute Maximum Ratings are stress ratings only. Permanent damage to the device may be caused by continuously operating at or beyond these limits. Device functional operating limits and guaranteed performance specifications are given under Electrical Characteristics at the test conditions specified. ESD Sensitive Device. This device is manufactured on a CMOS process. It is therefore generically susceptible to damage from excessive static voltages. Proper ESD precautions must be taken during handling and storage of this device. Wolfson tests its package types according to IPC/JEDEC J-STD-020B for Moisture Sensitivity to determine acceptable storage conditions prior to surface mount assembly. These levels are: MSL1 = unlimited floor life at <30C / 85% Relative Humidity. Not normally stored in moisture barrier bag. MSL2 = out of bag storage for 1 year at <30C / 60% Relative Humidity. Supplied in moisture barrier bag. MSL3 = out of bag storage for 168 hours at <30C / 60% Relative Humidity. Supplied in moisture barrier bag. The Moisture Sensitivity Level for each package type is specified in Ordering Information. CONDITION Digital core and I/O buffer supply voltage PLL supply voltage Voltage range digital inputs Master Clock Frequency Operating temperature range, TA Storage temperature Note: 1. 2. PLL and digital supplies must always be within 0.3V of each other. PLL and digital grounds must always be within 0.3V of each other. -25C -65C MIN -0.3V -0.3V DGND -0.3V MAX +5V +5V DVDD +0.3V 37MHz +85C +150C
w
PD Rev 4.1 September 2007 5
WM8804 RECOMMENDED OPERATING CONDITIONS
PARAMETER Digital supply range Ground PLL supply range Ground Notes: 1. 2. PLL and digital supplies must always be within 0.3V of each other. PLL and digital grounds must always be within 0.3V of each other. SYMBOL DVDD DGND PVDD PGND 2.7 0 TEST CONDITIONS MIN 2.7 0 3.6 TYP MAX 3.6
Production Data
UNIT V V V V
SUPPLY CURRENT
PARAMETER Digital supply current PLL supply current Power Consumption Standby Power Consumption SYMBOL IDVDD IPVDD TEST CONDITIONS DVDD = 3.3V PVDD = 3.3V DVDD/PVDD = 3.3V DVDD/PVDD = 3.3V Device powered down MIN TYP 14.9 1.7 54.8 0.11 MAX UNIT mA mA mW mW
ELECTRICAL CHARACTERISTICS
Test Conditions PVDD = 3.3V, DVDD = 3.3V, PGND = 0V, DGND = 0V, TA = +25oC, fs = 48kHz, MCLK = 256fs unless stated. PARAMETER Jitter Characteristics Intrinsic Period Jitter Digital Logic Levels (CMOS Levels) Input LOW level Input HIGH level Output LOW Output HIGH CLOCKOUT buffer drive capability S/PDIF Receiver Characteristics Input Resistance 23 k VIL VIH VOL VOH Isource Isink CMOS 20pF load 0.9 x DVDD 25 25 0.7 x DVDD 0.1 x DVDD 0.3 x DVDD V V V V mA mA Ji 50 ps SYMBOL TEST CONDITIONS MIN TYP MAX UNIT
w
PD Rev 4.1 September 2007 6
Production Data
WM8804
tMCLKL
MASTER CLOCK TIMING
MCLK tMCLKH tMCLKY
Figure 1 Slave Mode MCLK Timing Requirements Test Conditions PVDD = 3.3V, DVDD = 3.3V, PGND = 0V, DGND = 0V, TA = +25oC, fs = 48kHz, MCLK = 256fs unless stated. PARAMETER MCLK System clock cycle time MCLK System clock pulse width high MCLK System clock pulse width low MCLK Duty cycle Table 1 Master Clock Timing Requirements SYMBOL tMCLKY tMCLKH tMLCKL TEST CONDITIONS MIN 27 11 11 40:60 60:40 TYP MAX UNIT ns ns ns %
System Clock Timing Information - Slave Mode
DIGITAL AUDIO INTERFACE - MASTER MODE
BCLK tDL LRCLK tDDA DOUT
DIN tDST tDHT
Figure 2 Digital Audio Data Timing - Master Mode Test Conditions PVDD = 3.3V, DVDD = 3.3V, PGND = 0V, DGND = 0V, TA = +25oC, fs = 48kHz, MCLK = 256fs unless stated. PARAMETER LRCLK propagation delay from BCLK falling edge DOUT propagation delay from BCLK falling edge DIN setup time to BCLK rising edge DIN hold time from BCLK rising edge SYMBOL tDL tDDA tDST tDHT TEST CONDITIONS MIN 0 0 10 10 TYP MAX 10 10 UNIT ns ns ns ns
Audio Data Input Timing Information
Table 2 Digital Audio Data Timing - Master Mode
w
PD Rev 4.1 September 2007 7
WM8804
DIGITAL AUDIO INTERFACE - SLAVE MODE
tBCH BCLK tBCY LRCLK tDS DIN tDD DOUT tDH tLRH tLRSU tBCL
Production Data
Figure 3 Digital Audio Data Timing - Slave Mode Test Conditions PVDD = 3.3V, DVDD = 3.3V, PGND = 0V, DGND = 0V, TA = +25oC, fs = 48kHz, MCLK = 256fs unless stated. PARAMETER BCLK cycle time BCLK pulse width high BCLK pulse width low LRCLK set-up time to BCLK rising edge LRCLK hold time from BCLK rising edge DIN set-up time to BCLK rising edge DIN hold time from BCLK rising edge DOUT propagation delay from BCLK falling edge SYMBOL tBCY tBCH tBCL tLRSU tLRH tDS tDH tDD TEST CONDITIONS MIN 50 20 20 10 10 10 10 0 10 TYP MAX UNIT ns ns ns ns ns ns ns ns
Audio Data Input Timing Information
Table 3 Digital Audio Data Timing - Slave Mode
w
PD Rev 4.1 September 2007 8
Production Data
WM8804
CONTROL INTERFACE - 3-WIRE MODE
Figure 4 Control Interface Timing - 3-Wire Serial Control Mode Test Conditions PVDD = 3.3V, DVDD = 3.3V, PGND = 0V, DGND = 0V, TA = +25oC, fs = 48kHz, MCLK = 256fs unless stated. PARAMETER Program Register Input Information SCLK rising edge to CSB rising edge SCLK cycle time SCLK duty cycle SDIN to SCLK set-up time SDIN hold time from SCLK rising edge SDOUT propagation delay from SCLK rising edge CSB pulse width high CSB rising/falling to SCLK rising SCLK glitch suppression Table 4 Control Interface Timing - 3-Wire Serial Control Mode tDSU tDHO tDL tCSH tCSS tps 20 20 2 8 tSCS tSCY 60 80 40/60 20 20 5 60/40 ns ns % ns ns ns ns ns ns SYMBOL MIN TYP MAX UNIT
w
PD Rev 4.1 September 2007 9
WM8804
CONTROL INTERFACE - 2-WIRE MODE
Production Data
t STHO SDIN
t DSU
t STHO
t STSU SCLK t SCY t DH
t STOP
Figure 5 Control Interface Timing - 2-Wire Serial Control Mode
Test Conditions o PVDD = 3.3V, DVDD = 3.3V, PGND = 0V, DGND = 0V, TA = +25 C, fs = 48kHz, MCLK = 256fs unless stated. PARAMETER Program Register Input Information SCLK cycle time SCLK duty cycle SCLK frequency Hold Time (Start Condition) Setup Time (Start Condition) Data Setup Time SDIN, SCLK Rise Time SDIN, SCLK Fall Time Setup Time (Stop Condition) Data Hold Time SCLK glitch suppression Table 5 Control Interface Timing - 2-Wire Serial Control Mode tSTOP tDH tps 2 600 900 8 tSTHO tSTSU tDSU 600 600 100 300 300 tSCY 2500 40/60 60/40 400 ns % kHz ns ns ns ns ns ns ns ns SYMBOL MIN TYP MAX UNIT
w
PD Rev 4.1 September 2007 10
Production Data
WM8804
DEVICE DESCRIPTION
INTRODUCTION
FEATURES
* * * * * * * * * * IEC-60958-3 compatible with 32 to 192k frames/s support. Supports AES-3 data frames. Support for reception and transmission of S/PDIF data. Clock synthesis PLL with reference clock input and low jitter output. Supports input reference clock frequencies from 10MHz to 27MHz. Dedicated high drive clock output pin. Register controlled channel status bit configuration. Register read-back of recovered channel status bits and error flags. Detection of non-audio data, sample rate and de-emphasis. Programmable GPOs for error flags and frame status flags.
The WM8804 is an IEC-60958 compatible S/PDIF transceiver with support for one received S/PDIF data stream and one transmitted S/PDIF data stream. The receiver performs data and clock recovery, and transmits recovered data from the chip either through the digital audio interface or, alternatively, the device can loop the received S/PDIF data back out through the S/PDIF transmitter producing a de-jittered S/PDIF transmit data stream. The recovered clock may be routed to a high drive output pin for external use. If there is no S/PDIF input data stream the PLL can be configured to output all standard MCLK frequencies or it can be configured to maintain the frequency of the last received S/PDIF data stream. The transmitter generates S/PDIF frames where audio data may be sourced from the S/PDIF receiver or the digital audio interface. Timing for the S/PDIF transmitter interface can be sourced from the internally derived MCLK in loop through mode or it can be taken from an external source.
S/PDIF FORMAT
S/PDIF is a serial, bi-phase-mark encoded data stream. An S/PDIF frame consists of two subframes. Each sub-frame is made up of: * * * * * * * Preamble - a synchronization pattern used to identify the start of a 192-frame block or subframe 4-bit Auxiliary Data (AUX) - ordered LSB to MSB 20-bit Audio Data (24-bit when combined with AUX) - ordered LSB to MSB Validity Bit - a 1 indicates invalid data in the associated sub-frame User Bit - over 192-frames, this forms a User Data Block Channel Bit - over 192-frames, this forms a Channel Status Block Parity Bit - used to maintain even parity over the sub-frame (not including the preamble)
An S/PDIF Block consists of 192 frames. Channel and user blocks are incorporated within the 192frame S/PDIF Block. For Consumer mode only the first 40-frames are used to make up the Channel and User blocks. Figure 6 illustrates the S/PDIF format. The WM8804 does not support transmission of user channel data. Received user channel data may be accessed via GPO pins.
w
PD Rev 4.1 September 2007 11
WM8804
Production Data
Frame 1
.........
Frame 192
Subframe 1
Subframe 2
0
34
Aux
78
Audio Sample Word
27 28
V U C
31
P
Sync preamble
32 bits
Figure 6 S/PDIF Format
POWER UP CONFIGURATION
The operating mode of the WM8804 is dependent upon the state of SDIN, SCLK, SDOUT, CSB and GPO0 when the device is powered up or a hardware reset occurs. Table 6 summarises the configuration options. HW RESET = 0 SWMODE SDIN SCLK HWMODE HW RESET = 1 SWMODE SDIN SCLK 2-wire 3-wire SDOUT 3-wire CSB HWMODE N/A GPO (TRANS_ERR) GPO (NON_AUDIO) GPO (UNLOCK) GPO AIF_CONF[1] Mode Select GPO (GEN_FLAG)
HWMODE / SWMODE Select N/A AIF_MS
PIN
SDOUT 2-wire CSB
N/A 3-wire
AIF_CONF[0] GPO 2-wire TXSRC N/A GPO
Device Address
2-wire/3-wire GPO0
Note: AIF_CONF[1:0] configures the audio interface when the device operates in hardware mode. Refer to Table 16 for description of modes. Table 6 Device Configuration at Power up or Hardware Reset
w
PD Rev 4.1 September 2007 12
Production Data
WM8804
When the device powers up, all power up configuration pins are configured as inputs for a minimum of 9.4us and a maximum of 25.6us following the release of the external reset. The times are based on 27MHz and 10MHz crystal clock frequencies respectively. This enables the pins to be sampled and the device to be configured before the pins are released to their selected operating conditions. Figure 7 illustrates how SDIN is sampled.
Sampling of pin value at reset to generate internal signals.
HWMODE / SWMODE
SDIN RSTB PowerOn Reset
POR_B
D ENB
Q
Figure 7 Pin Sampling On Power Up or Hardware Reset If the device is powered up in software control mode, all functions of the device are powered down by default and must be powered up individually by writing to the relevant bits of the PWRDN register (Table 7). In hardware control mode, all functions of the device are powered up by default. REGISTER ADDRESS R30 PWRDN 1Eh BIT 0 LABEL PLLPD DEFAULT 1 DESCRIPTION PLL powerdown 0 = PLL enabled 1 = PLL disabled S/PDIF receiver powerdown 0 = S/PDIF receiver enabled 1 = S/PDIF receiver disabled S/PDIF transmitter powerdown 0 = S/PDIF transmitter enabled 1 = S/PDIF transmitter disabled Oscillator power down 0 = Power Up 1 = Power Down Digital audio interface power down 0 = Power Up 1= Power Down 5 TRIOP 0 Tri-state all outputs 0 = Outputs not tri-stated 1 = Outputs tri-stated
1
SPDIFRXP D SPDIFTXPD
1
2
1
3
OSCPD
0
4
AIFPD
0
Table 7 Power Down Register
w
PD Rev 4.1 September 2007 13
WM8804
CONTROL INTERFACE OPERATION
Production Data
Control of the WM8804 is implemented in either hardware control mode or software control mode. The method of control is determined by sampling the state of the SDIN/HWMODE pin at power up or at a hardware reset. If SDIN/HWMODE is low during power up the device is configured in hardware control mode, otherwise the device is configured in software control mode. SDIN/HWMODE 0 1 Hardware mode Software mode
Table 8 Hardware or Software Mode Select Software control is achieved using a 3-wire (3-wire write, 4-wire read) or a 2-wire serial interface. The serial interface format is configured by sampling the state of the GPO0/SWIFMODE pin on power up or at a hardware reset. If the GPO0/SWIFMODE pin is low the interface is configured in 2wire mode, otherwise the interface is configured in 3-wire SPI compatible mode. GPO0/SWIFMODE 0 1 2-wire interface 3-wire interface
Table 9 Software Mode Control Interface Select
3-WIRE (SPI COMPATIBLE) SERIAL CONTROL MODE - REGISTER WRITE
SDIN is used for the program data, SCLK is used to clock in the program data and CSB is used to latch in the program data. SDIN is sampled on the rising edge of SCLK. The 3-wire interface write protocol is shown in Figure 8.
Figure 8 3-Wire Serial Interface Register Write Protocol * * * * W is a control bit indicating a read or write operation. 0 =write operation, 1 = read operation REGA[6:0] is the register address. DIN[7:0] is the data to be written to the register being addressed. CSB is edge sensitive - the data is latched on the rising edge of CSB.
w
PD Rev 4.1 September 2007 14
Production Data
WM8804
3-WIRE SERIAL CONTROL MODE REGISTER READ-BACK
Not all registers can be read. Only the device ID (registers R0, R1 and R2) and the status registers can be read. These status registers are labelled as "read only" in the Register Map section. The read-only status registers can be read back via the SDOUT pin. The registers can be read by one of two methods, selected by the CONT register bit and the `W' control bit. The oscillator must be powered up before 3-wire control interface read-back is possible. When CONT =1 and `W'=0, a single read-only register can be read back by writing to any other register or to a dummy register. The register to be read is determined by the READMUX[2:0] bits. When a write to the device is performed, the device will respond by returning the status byte in the register selected by the READMUX register bits. This 3-wire interface read back method using a write access is shown in Figure 9. REGISTER ADDRESS R29 SPDRX1 1Dh BIT 2:0 LABEL READMUX [2:0] DEFAULT 000 DESCRIPTION Status Register Select Determines which status register is to be read back: 000 = Interrupt Status Register 001 = Channel Status Register 1 010 = Channel Status Register 2 011 = Channel Status Register 3 100 = Channel Status Register 4 101 = Channel Status Register 5 110 = S/PDIF Status Register Continuous Read Enable 0 = Continuous read-back mode disabled 1 = Continuous read-back mode enabled Table 10 Read-Back Control Register The SDOUT pin is tri-state unless CSB is held low; therefore CSB must be held low for the duration of the read.
3
CONT
0
Figure 9 3-Wire Control Interface Read-Back Method 1 The second method of reading the read only status registers is If CONT=0 and `W'=1. Using this method the user can read back directly from a register by reading the register address. The device will respond with the contents of the register. The protocol for this read-back method is shown in Figure 10.
w
PD Rev 4.1 September 2007 15
WM8804
Production Data
Figure 10 3-Wire Control Interface Read-Back Method 2
2-WIRE SERIAL CONTROL MODE - REGISTER WRITE
The WM8804 supports software control via a 2-wire serial bus. Many devices can be controlled by the same bus and each device has a unique 7-bit address (see Table 11). The controller indicates the start of data transfer with a high to low transition on SDIN while SCLK remains high. This indicates that a device address, DEVA(7:1), and data, REG(6:0), will follow. All devices on the 2-wire bus will shift in the next eight bits on SDIN (7-bit address DEVA(7:1), + read/write `W' bit, MSB first). If the device address received matches the address of the WM8804, the WM8804 responds by driving SDIN low on the next clock pulse (ACK). This is a device acknowledgement of an address match. If the address does not match that of the WM8804, the device returns to the idle condition and waits for a new start condition and valid address. Once the WM8804 has acknowledged a matching address, the controller sends the first byte of control data, which is the WM8804 register address (REGA[6:0]). The WM8804 then acknowledges reception of the control data byte by pulling SDIN low for one clock pulse (another ACK). The controller then sends the second byte of control data (DIN[7:0], i.e. the eight bits of register data to be written), and the WM8804 acknowledges again by pulling SDIN low (another ACK). The transfer of data is complete when there is a low to high transition on SDIN while SCLK is high. After receiving a complete address and data sequence the WM8804 returns to the idle state and waits for another start condition. If a start or stop condition is detected out of sequence at any point during data transfer (i.e. SDIN changes while SCLK is high), the device returns to the idle condition.
Figure 11 2-Wire Serial Control Interface Write
w
PD Rev 4.1 September 2007 16
Production Data
WM8804
Multiple consecutive register writes can be performed in 2-wire control mode by setting the CONT bit high. This method allows the entire register map to be defined in a one continuous write operation.
Figure 12 2-Wire Serial Control Interface Multi-Write The WM8804 has two possible device addresses, which can be selected using the CSB pin during hardware reset. CSB STATE Low High DEVICE ADDRESS IN 2-WIRE MODE 0111010x 0111011x ADDRESS (X=R/W BIT) X=0 X= 1 0x7A 0x76 0x75 0x77
Table 11 2-Wire Interface Address Selection
2-WIRE SERIAL CONTROL MODE -REGISTER READ-BACK
The WM8804 allows read-back of certain registers in 2-wire mode. The protocol is similar to that used to write to the device. The controller will issue the device address followed by a write bit, the register index will then be passed to the WM8804. At this point the controller will issue a repeated start condition and resend the device address along with a read bit. The WM8804 will acknowledge this and the WM8804 will become a slave transmitter. The WM8804 will transmit the data from the indexed register on SDIN MSB first. When the controller receives the data it will not acknowledge receipt of the data indicating that it will resume master transmitter control of SDIN. The controller will then issue a stop command completing the read cycle. Figure 13 illustrates the read protocol.
Figure 13 2-Wire Serial Control Interface Read (CONT=0)
2-WIRE SERIAL CONTROL MODE - CONTINUOUS READ-BACK
As in 3-wire mode, there are two methods of reading back data: continuous and non-continuous read-back. Continuous read-back is selected by setting CONT to 1. In continuous read-back mode, the device will return the indexed register first followed by consecutive registers in increasing index order until the controller does not acknowledge the data then issues a stop sequence. This is shown in Figure 14
Figure 14 2-Wire Serial Interface Continuous Read-Back (CONT=1)
w
PD Rev 4.1 September 2007 17
WM8804
SOFTWARE REGISTER RESET
Production Data
Writing to register 0000000 will reset the WM8804. This will reset all register bits to their default values. The WM8804 is powered down by default so writing to this register will power down the device.
DEVICE ID AND REVISION IDENTIFICATION
Registers 0,1 and 2 can be read to identify the device ID and IC revision number. Refer to Table 12 for details.
REGISTER ADDRESS R00 RST/DEVID1 00h
BIT
LABEL
DEFAULT
DESCRIPTION Writing to this register will apply a reset to the device. Reading from this register will return the second part of the device ID 00000101 = 0x05 Reading from this register will return the first part of the device ID 10001000 = 0x88 Reading from this register will return the device revision. 0x1 = revision 1
RESET 7:0 DEVID1[7:0]
N/A
00000101
R01 DEVID2 01h (read only) R02 DEVREV 02h
7:0
DEVID2[7:0]
10001000
3:0
DEVREV [3:0]
N/A
Table 12 Software Reset Register and Device ID
HARDWARE CONTROL MODE
The WM8804 can be operated in either software or hardware control modes. The method of control is determined by sampling the state of the SDIN pin during power up or hard reset. If SDIN is LOW during power up or hardware reset, the WM8804 will be switched into hardware control mode. PIN SDIN 0 Hardware control Mode 1 Software control Mode
Table 13 Hardware / Software Mode Configuration In hardware control mode the user has limited control over the configuration of the device. Most of the features will assume default values but some can be configured using external pins. When the device is configured in hardware control mode, all functions of the device are powered up. The clock and data recovery module requires a 12 MHz crystal derived clock reference as the default values for this module cannot be altered in hardware control mode.
MASTER / SLAVE MODE SELECTION
The WM8804 can be configured in either master or slave mode. In software control mode this is set by writing to AIF_MS in the AIFRX register. In hardware control mode this is controlled by sampling the SCLK pin on power up or hardware reset. PIN (HARDWARE MODE) SCLK REGISTER (SOFTWARE MODE) AIF_MS 0 1
Slave mode
Master mode
Table 14 Master / Slave Mode Configuration in Hardware Mode
w
PD Rev 4.1 September 2007 18
Production Data
WM8804
DIGITAL ROUTING CONTROL
See page 20 for a full description of the signal routing options available in the WM8804. In Software control mode the value set in register TXSRC determines the S/PDIF transmitter data source. In hardware control mode the value of TXSRC can be set using the CSB pin. PIN (HARDWARE MODE) CSB REGISTER (SOFTWARE MODE) TXSRC 0 1
S/PDIF Rx
AIF Rx
Table 15 S/PDIF Transmitter Digital Routing Control Configuration
AUDIO INTERFACE CONTROL
In software control mode the audio data word length and audio data format can be set independently for the receiver and transmitter sides of the interface. However, in hardware control mode both sides of the interface are combined and the configuration is set using SDOUT and GPO0 pins as described in Table 6 and Table 16. Note that AIF_CONF[1:0] configures the audio interface when the device operates in hardware mode. GPO0 / AIFCONF[1] 0 0 1 1 SDOUT / AIFCONF[0] 0 1 0 1 DESCRIPTION
16-bit I2S 24-bit I2S 24-bit Left Justified With Flags 16-bit Right Justified
Table 16 Digital Audio Interface Control in Hardware Control Mode
STATUS INFORMATION
In hardware control mode the WM8804 outputs a selection of status flags for the user. Table 17 describes the flags which are available and the output pins on which they are available. PIN SCLK SDOUT CSB GPO0 STATUS FLAG TRANS_ERR NON_AUDIO UNLOCK GEN_FLAG
Table 17 Hardware Control Mode Status Flag Configuration A full description of the status flags is given in Table 45.
w
PD Rev 4.1 September 2007 19
WM8804
DIGITAL ROUTING CONTROL
Production Data
Figure 15 Digital Routing Paths within the WM8804 Digital signal routing within the WM8804 is controlled by the TXSRC register. In order to ensure proper operation when changing TXSRC, the S/PDIF transmitter module should be powered down prior to changing the TXSRC control register and powered up again once the routing path has been changed. REGISTER ADDRESS R30 PWRDN 1Eh R21 SPDTX4 15h BIT 2 LABEL SPDIFTXPD DEFAULT 1 DESCRIPTION S/PDIF Transmitter Powerdown 0 = S/PDIF transmitter enabled 1 = S/PDIF transmitter disabled S/PDIF Transmitter Data Source 0 = S/PDIF Received Data - SPDIFTXCLK Source = CLK2 1 = Digital Audio Interface Received Data - SPDIFTXCLK Source = MCLK Input/Output Signal at MCLK Pin
6
TXSRC
1
Table 18 Digital Signal Routing Control Registers
w
PD Rev 4.1 September 2007 20
Production Data
WM8804
MASTER CLOCK AND PHASE LOCKED LOOP SOFTWARE MODE INTERNAL CLOCKING
The WM8804 is equipped with a comprehensive clocking scheme that provides maximum flexibility and many configurable routing possibilities for the user in software mode. An overview of the software mode clocking scheme is shown in Figure 16.
Figure 16 Software Mode Clocking Scheme The clocking scheme can be divided into four sections. These are detailed as follows: OSCILLATOR The primary function of the oscillator is to generate the oscillator clock (OSCCLK) for the PLL input. Whenever the PLL or the S/PDIF receiver is enabled, the oscillator must be used to generate the OSCCLK signal for the PLL. The secondary function of the oscillator is to generate the OSCCLK so that it can be selected internally as the clock source for: * * The MCLK output pin, when the pin is configured as an output. The CLKOUT output pin, when enabled.
The oscillator has one control bit as shown in Table 19. The oscillator must be powered up to generate the OSCCLK signal. REGISTER ADDRESS R30 PWRDN 1Eh BIT 3 LABEL OSCPD DEFAULT 1 DESCRIPTION Oscillator Power Down Control 0 = Power up 1 = Power down
Table 19 Oscillator Control
w
PD Rev 4.1 September 2007 21
WM8804
Production Data The oscillator uses a Pierce type oscillator drive circuit. This circuit requires an external crystal and appropriate external loading capacitors. The oscillator circuit contains a bias generator within the WM8804 and hence an external bias resistor is not required. Crystal frequencies between 10 and 14.4MHz or 16.28 and 27MHz can be used in software mode. The recommended circuit is shown in the recommended components diagram, please refer to Figure 28. Alternatively, an external CMOS compatible clock signal can be applied to the XIN pin in the absence of a crystal, although this is not recommended when using the PLL as the PLL requires a jitter-free OSCCLK signal for optimum performance. PHASE-LOCKED LOOP (PLL) The WM8804 has an on-chip phase-locked loop (PLL) circuit that can be used to synthesise clock signals from the external oscillator clock. The PLL can be used to: * * * Generate clocks necessary for the S/PDIF receiver to lock on to and recover S/PDIF data from an incoming S/PDIF data stream. Generate clocks which may be used to drive the MCLK and/or CLKOUT pins. Generate clocks which may be used by the S/PDIF transmitter to encode and transmit a S/PDIF data stream.
The PLL can be enabled or disabled using the PLLPD register bit as shown in Table 20. REGISTER ADDRESS R30 PWRDN 1Eh BIT 0 LABEL PLLPD DEFAULT 1 DESCRIPTION PLL Power Down Control 0 = Power up PLL 1 = Power down PLL
Table 20 PLL Power Down Control The PLL has two modes of operation: * S/PDIF Receive Mode (Automatic PLL Mode - Selected if S/PDIF Receiver Enabled)
In S/PDIF receive mode, the PLL is automatically controlled by the S/PDIF receiver to allow the receiver to use the PLL to lock on to and track the incoming S/PDIF data stream. Please refer to the S/PDIF Receiver section within the Internal Clocking description for full details. If the CLKOUT or MCLK clocks are sourced from either CLK1 or CLK2 in this mode, the frequency of these signals will be modified based on the clock rate of the incoming S/PDIF data stream. If the sample rate of the incoming stream is changed, the MCLK and CLKOUT signals will continue to be output, but will not be valid until the S/PDIF receiver has locked to the incoming stream at the new sample rate. If the incoming S/PDIF stream stops, the PLL N and K values will be frozen and the output clocks will continue at the frequency set by the last recovered S/PDIF stream. If the S/PDIF input stream is removed then it is possible for the PLL to detect small pulse as the data is being removed. This may result in the output clocks changing to an invalid frequency. Note also that if the device is power-on and configured with no S/PDIF input data stream, then the PLL will default to approximately 24MHz. * User Mode (Manual PLL Mode - Selected if S/PDIF Receiver Disabled)
In user mode, the user has full control over the PLL function and operation. In this mode, the user can accurately specify the PLL N and K multiplier values (using the PLL_N and PLL_K registers), divider values (PRESCALE and FREQMODE) and can hence control the generated CLK1 and CLK2 frequencies. Refer to Table 21 for details of the registers available for configuration in this mode.
w
PD Rev 4.1 September 2007 22
Production Data REGISTER ADDRESS R3 PLL1 03h R4 PLL2 04h R5 PLL3 05h R6 PLL4 06h BIT 7:0 LABEL PLL_K[7:0] DEFAULT 00100001
WM8804
DESCRIPTION Fractional (K) part of PLL frequency ratio (R). Value K is one 22-digit binary number spread over registers R3, R4 and R5 as shown. Note: PLL_K must be set to specific values when the S/PDIF receiver is used. Refer to S/PDIF Receiver clocking section for details. Integer (N) part of PLL frequency ratio (R). Use values in the range 5 PLL_N 13 as close as possible to 8 Note: PLL_N must be set to specific values when the S/PDIF receiver is used. Refer to S/PDIF Receiver clocking section for details.
7:0
PLL_K[15:8]
11111101
5:0
PLL_K[21:16]
00110110
3:0
PLL_N[3:0]
0111
Table 21 User Mode PLL_K and PLL_N Multiplier Control PLL CONFIGURATION The PLL performs a configurable frequency multiplication of the input clock signal (f1). The multiplication factor of the PLL (denoted by `R') is variable and is defined by the relationship: R = (f2 / f1). The multiplication factor is set using register bits PLL_N and PLL_K (refer to Table 21). The multiplication effect of both the N and K multipliers are additive (i.e. if N is configured to provide a multiplication factor of 8 and K is configured to provide a multiplication factor of 0.192, the overall multiplication factor is 8 + 0.192 = 8.192). In order to choose and configure the correct values for PLL_N and PLL_K, multiplication factor R must first be calculated. Once value R is calculated, the value of PLL_N is the integer (whole number) value of R, ignoring all digits to the right of the decimal point. For example, if R is calculated to be 8.196523, PLL_N is simply 8. Once PLL_N is calculated, the PLL_K value is simply the integer value of (222 (R-PLL_N)). For example, if R is 8.196523 and PLL_N is 8, PLL_K is therefore (222 (8.196523-8)), which is 824277 (ignoring all digits to the right of the decimal point). Note: The PLL is designed to operate with best performance (shortest lock time and optimum stability) when f2 is between 90 and 100MHz and PLL_N is 8. However, acceptable PLL_N values lie in the range 5 PLL_N 13. Do not use values outwith this range and it is recommended that the chosen value of PLL_N is as close to 8 as possible for optimum performance. An output divider is provided to allow the f2 clock signal to be divided to a frequency suitable for use as the source for the MCLK, CLKOUT or S/PDIF transmitter. The divider output is configurable and is set by the FREQMODE bits. The PLL is also equipped with a pre-scale divider which offers frequency divide by one or two before the OSCCLK signal is fed to the PLL. Please refer to
w
PD Rev 4.1 September 2007 23
WM8804
REGISTER ADDRESS R6 PLL4 06h BIT 4 LABEL PRESCALE DEFAULT 0
Production Data DESCRIPTION PLL Pre-scale Divider Select 0 = Divide by 1 (PLL input clock = oscillator clock) 1 = Divide by 2 (PLL input clock = oscillator clock / 2) PLL Post-scale Divider Select Selects the PLL output divider value in conjunction with MCLKDIV and CLKOUTDIV. Refer to Table 23 for details of FREQMODE operation. Note: FREQMODE[1:0] bits are automatically set in S/PDIF Receive Mode.
R7 PLL5 07h
1:0
FREQMODE[1:0]
10
Table 22 Pre and Post PLL Clock Divider Control PLL CONFIGURATION EXAMPLE Consider the situation where the oscillator clock (OSCCLK) input frequency is fixed at 12MHz and the required MCLK frequency is 12.288MHz. 1. Calculate the f2, FREQMODE and MCLKDIV Values
The PLL is designed to operate with best performance when the f2 clock is between 90 and 100MHz. The necessary MCLK frequency is 12.288MHz. Choose MCLKDIV and FREQMODE values to set the f2 frequency in the range of 90 to 100MHz. In this case, the default values (MCLKDIV = 0 and FREQMODE[1:0] = 10) will set the f2 frequency at 98.304MHz; this value is within the 90 to 100MHz range and is hence acceptable. * * * 2. MCLKDIV = 0 FREQMODE[1:0] = 10 f2 = 98.304MHz
Calculate R Value
Using the relationship: R = (f2 / f1), the value of R can be calculated. * * * 3. R = (f2 / f1) R = (98.304 / 12) R = 8.192
Calculate PLL_N Value
The value of PLL_N is the integer (whole number) value of R, ignoring all digits to the right of the decimal point. In this case, R is 8.192, hence PLL_N is 8. 4. Calculate PLL_K Value
The PLL_K value is simply the integer value of (222 (R-PLL_N)). * * * PLL_K = integer part of (222 x (8.192 - 8)) PLL_K = integer part of 805306.368 PLL_K = 805306 (decimal) / C49BA (hex)
A number of example configurations are shown in Table 23. Many other configurations are possible; Table 23 shows only a small number of valid possibilities.
w
PD Rev 4.1 September 2007 24
Production Data OSC CLK (MHz) 12 12 12 12 12 24 24 24 24 24 27 27 27 27 PRESCALE F1 (MHz) F2 (MHz) R PLL_N (Hex) PLL_K (Hex) FREQ MODE [1:0] 00 10 10 10 10 01 10 10 10 10 10 10 10 10 MCLK DIV MCLK (MHz)
WM8804
CLKOUT DIV [1:0] 01 00 01 10 11 00 00 01 10 11 01 10 01 10 CLK OUT (MHz) 49.152 24.576 12.288 6.144 3.072 45.1584 22.5792 11.2896 5.6448 2.8224 12.288 6.144 11.2896 5.6448
0 0 0 0 0 1 1 1 1 1 1 1 1 1
12 12 12 12 12 12 12 12 12 12 13.5 13.5 13.5 13.5
98.304 98.304 98.304 98.304 98.304 90.3168 90.3168 90.3168 90.3168 90.3168 98.304 98.304 90.3168 90.3168
8.192 8.192 8.192 8.192 8.192 7.5264 7.5264 7.5264 7.5264 7.5264 7.2818 7.2818 6.6901 6.6901
8 8 8 8 8 7 7 7 7 7 7 7 6 6
C49BA C49BA C49BA C49BA C49BA 21B089 21B089 21B089 21B089 21B089 1208A5 1208A5 2C2B24 2C2B24
1 0 1 0 1 0 0 1 0 1 0 1 0 1
24.576 12.288 6.144 12.288 6.144 22.5792 11.2896 5.6448 11.2896 5.6448 12.288 6.144 11.2896 5.6448
Table 23 User Mode PLL Configuration Examples When considering settings not shown in this table, the key configuration parameters which must be selected for optimum operation are: * * * 90MHz f2 100MHz 5 PLL_N 13 OSCCLOCK = 10 to 14.4MHz or 16.28 to 27MHz
PLL INTEGER AND FRACTIONAL CONTROL MODES The PLL can be operated in either fractional or integer control modes. In PLL User Mode, it is recommended that the PLL should be operated in fractional control mode at all times. When the S/PDIF receiver is enabled, the PLL must be operated in fractional control mode. REGISTER ADDRESS R7 PLL5 07h BIT 2 LABEL FRACEN DEFAULT 1 DESCRIPTION Integer/Fractional PLL Mode Select 0 = Integer PLL (PLL_N value used, PLL_K value ignored) 1 = Fractional PLL (both PLL_N and PLL_K values used) Note: FRACEN must be set to enable the fractional PLL when using S/PDIF Receive Mode.
Table 24 PLL Fractional/Integer Mode Select MASTER CLOCK (MCLK) The master clock (MCLK) signal is used to supply reference clock signals to the following circuit blocks: * * The Digital Audio Interface The S/PDIF Transmitter
The master clock (MCLK) pin can be configured as either a clock input or output depending on the digital audio interface mode as shown in Table 25.
w
PD Rev 4.1 September 2007 25
WM8804
REGISTER ADDRESS R28 AIFRX 1Ch BIT 6 LABEL AIF_MS DEFAULT 0
Production Data DESCRIPTION Audio Interface Mode Select 0 = Slave mode - MCLK Input 1 = Master mode - MCLK Output
Table 25 Audio Interface Mode Select When MCLK is configured as an output, the MCLK source and rate can be selected using the control bits shown in Table 26. The MCLK rate select can only be used when the MCLK output source is selected as the PLL clock. If the oscillator clock is selected as the PLL source, the MCLK frequency is equal to the oscillator clock frequency. REGISTER ADDRESS R7 PLL5 07h BIT 3 LABEL MCLKDIV DEFAULT 0 DESCRIPTION MCLK Divider Select (Only valid when CLK2 is selected as MCLK output source) See Table 27 for MCLKDIV configuration in PLL user mode. See Table 28 for MCLKDIV configuration in PLL S/PDIF receive mode. MCLK Output Source select 0 = Select CLK2 1 = Select OSCCLK
R8 PLL6 08h
7
MCLKSRC
0
Table 26 Master Clock Output Control FREQMODE[1:0] F2 TO CLK1 DIVISION FACTOR CLKOUTDIV[1:0] 00 00 01 10 11 /2 /2 /4 /6 01 /2 /4 /8 /12 10 /4 /8 /16 /24 11 /8 /16 /32 /48 0 /2 /4 /8 /12 F2 TO CLK2 DIVISION FACTOR MCLKDIV 1 /4 /8 /16 /24
Table 27 PLL User Mode Clock Divider Configuration CLKOUTDIV[1:0] 00 01 10 11 CLK1 FREQUENCY 512fs 256fs 128fs 64fs MCLKDIV 0 1 CLK2 FREQUENCY 256fs 128fs
Table 28 PLL S/PDIF Receive Mode Clock Divider Configuration Note: The fs values shown above are relative to the S/PDIF recovered sample rate. When MCLK is configured as an input, the reference clock rate for the S/PDIF transmitter (when the digital audio interface received data is configured as the S/PDIF transmitter data source) is controlled by the frequency of the MCLK signal at the MCLK pin. Refer to the "Digital Audio Interface" datasheet section for details of configuring MCLK for appropriate digital audio interface operation. CLOCK OUTPUT (CLKOUT) The high-drive clock output (CLKOUT) pin can be used as a clock output. This pin is intended to be used as a clock source pin for providing the central clock reference for an audio system. The CLKOUT clock source can be selected from either the OSCCLK or CLK1 signals. The control bits for the CLKOUT signal are shown in Table 29.
w
PD Rev 4.1 September 2007 26
Production Data REGISTER ADDRESS R7 PLL5 07h BIT 5:4 LABEL CLKOUTDIV[1:0] DEFAULT 01
WM8804
DESCRIPTION CLKOUT Divider Select (Only valid when CLK1 is selected as CLKOUT output source) See for Table 27 CLKOUTDIV[1:0] configuration in PLL user mode. See Table 28 for CLKOUTDIV[1:0] configuration in PLL S/PDIF receive mode. CLKOUT Pin Source Select 0 = Select CLK1 1 = Select OSCCLK CLKOUT Pin Disable 0 = Pin Disabled (Pin tri-stated) 1 = Pin Enabled
R8 PLL6 08h
3
CLKOUTSRC
1
4
CLKOUTDIS
1
Table 29 Clock Output (CLKOUT) Control S/PDIF TRANSMITTER When the S/PDIF transmitter is enabled and configured (using TXSRC) to use the S/PDIF received data, the S/PDIF transmitter is clocked from the CLK2 signal. When the transmitter's data source is the digital audio interface, the transmitter reference clock source is the MCLK signal at the MCLK input/output pin. Refer to Table 30 for details. REGISTER ADDRESS R21 SPDTX4 15h BIT 6 LABEL TXSRC DEFAULT 1 DESCRIPTION S/PDIF Transmitter Data Source 0 = S/PDIF Received Data - SPDIFTXCLK Source = CLK2 1 = Digital Audio Interface Received Data - SPDIFTXCLK Source = MCLK Input/Output Signal at MCLK Pin
Table 30 S/PDIF Transmitter Data/MCLK Source Control The S/PDIF transmitter requires a clock reference signal (either CLK2 or MCLK) when enabled. The applied MCLK signal can be either128fs, 256fs, 384fs, 512fs, 768fs or 1152fs relative to the sample rate of the transmitted data. S/PDIF RECEIVER In S/PDIF receive mode, the PLL_N and PLL_K values are automatically modified by the S/PDIF receiver to allow the receiver to use the PLL to lock on to and track the incoming S/PDIF data stream. The S/PDIF receiver has four clocking modes based on the incoming S/PDIF stream sample rate. The modes are: * * * * Mode 1: Incoming S/PDIF sample rate = 176.4kHz - 1% to 192kHz +1% Mode 2: Incoming S/PDIF sample rate = 88.2kHz -1% to 96kHz +1% Mode 3: Incoming S/PDIF sample rate = 44.1kHz -1% to 48kHz +1% Mode 4: Incoming S/PDIF sample rate = 32kHz +/- 1%
Before the S/PDIF receiver is enabled, it is important that the PLL_N and PLL_K register values are manually configured in a specific default state so that the S/PDIF receiver can correctly modify the PLL_N and PLL_K values and hence establish correct PLL control. The PLL_N and PLL_K register values must also be manually re-configured when a change of the clocking mode is detected and the change is to mode 1 or from mode 1.
w
PD Rev 4.1 September 2007 27
WM8804
Production Data The specified f2 frequencies that must be configured using the PLL_N and PLL_K register values for reception of specific S/PDIF sample rates are as follows: * * Mode 1 (176.4/192kHz sample rate): f2 = 98.304MHz Modes 2/3/4 (32/44.1/48/88.2/96kHz sample rates): f2 = 94.3104MHz
The FREQMODE[1:0] bits are automatically controlled by the S/PDIF receiver when the receiver is enabled and do not need to be configured in any particular initial state by the user before the S/PDIF receiver is enabled. Refer to Table 27 and Table 28 for details of MCLKDIV and CLKOUTDIV configuration when the S/PDIF receiver is enabled. The PLL register settings are configured by default to allow 32/44.1/48/88.2/96kHz (modes 2/3/4) sample rate S/PDIF receiver operation using a 12MHz crystal clock. The PLL register settings must be updated if: * Any crystal clock frequency other than 12MHz is used. OR * A S/PDIF stream with 192kHz sample rate (mode 1) is detected.
In either case, reprogramming of the PLL_N and PLL_K values (and the PRESCALE value, depending on the crystal frequency) is necessary. Refer to Table 31 for details of a number of recommended PLL configurations. Many other configurations are possible; please refer to PLL Configuration section for details regarding how to calculate alternative settings. OSC CLK (MHz) 11.2896 11.2896 12 12 12.288 12.288 19.2 19.2 24 24 27 27 PRESCALE 0 0 0 0 0 0 1 1 1 1 1 1 S/PDIF RECEIVER SAMPLE RATE(S) (kHz) 32 / 44.1 / 48 / 88.2 / 96 192 32 / 44.1 / 48 / 88.2 / 96 192 32 / 44.1 / 48 / 88.2 / 96 192 32 / 44.1 / 48 / 88.2 / 96 192 32 / 44.1 / 48 / 88.2 / 96 192 32 / 44.1 / 48 / 88.2 / 96 192 F1 (MHz) F2 (MHz) R PLL_N (Hex) 8 8 7 8 7 8 9 A 7 8 6 7 PLL_K (Hex) 16A3B3 2D4766 36FD21 C49BA 2B3333 0 346C6A F5C28 36FD21 C49BA 3F19E5 1208A5 COMMENT
11.2896 94.3104 8.3537 11.2896 12 12 12.288 12.288 9.6 9.6 12 12 13.5 13.5 98.304 8.7075 94.3104 7.8592 98.304 98.304 98.304 98.304 8.192 8 10.24 8.192 94.3104 7.675 94.3104 9.824 94.3104 7.8592 94.3104 6.986 98.304 7.2818
Set N, K Set N, K Default Setting Set N, K Set K Set N, K Set Prescale, N, K Set Prescale, N, K Set Prescale Set Prescale, N, K Set Prescale, N, K Set Prescale, K
Table 31 S/PDIF Receive Mode PLL Initial Configuration Examples The recommended configuration sequences are as follows: TO INITIALLY CONFIGURE THE SYSTEM FOR S/PDIF RECEIVER STARTUP: 1. Write appropriate calculated values (relative to oscillator frequency) to PRESCALE, PLL_N and PLL_K registers for 32/44.1/48/88.2/96kHz (modes 2/3/4) S/PDIF receiver sample rate operation. Enable PLL by clearing PLLPD bit. Enable S/PDIF receiver by clearing SPDIFRXPD bit. Read S/PDIF Status Register REC_FREQ[1:0] bits to identify recovered S/PDIF sample frequency and clocking mode.
2. 3. 4.
w
PD Rev 4.1 September 2007 28
Production Data 5.
WM8804
If indicated sample rate is 192kHz, then the user must know what the sampling frequency is (176.4kHz or 192kHz) since these cannot be distinguished. The user should then write appropriate calculated values (relative to oscillator frequency) to PRESCALE, PLL_N and PLL_K for 176.4/192kHz (mode 1) S/PDIF receiver sample rate operation.
TO CONFIGURE THE SYSTEM WHEN CLOCKING MODE (SAMPLE RATE) CHANGES TO OR FROM MODE 1 (176.4/192KHZ): Any sample rate change between clocking modes (for example, from 44.1kHz (mode 3) to 192kHz (mode 1)) will be flagged to the application processor via the INT_N interrupt flag. The application processor must then read the Interrupt Status Register. If the UPD_REC_FREQ flag is set, indicating that the clocking mode has changed, proceed as follows: 1. Read S/PDIF Status Register REC_FREQ[1:0] bits to identify recovered S/PDIF sample rate frequency and clocking mode. If "192kHz" is indicated then since this is indistinguishable from 176.4kHz, the user must be aware of what the sampling frequency is. Write appropriate calculated values (relative to oscillator frequency) to PLL_N and PLL_K based on indicated recovered S/PDIF sample frequency and clocking mode.
2.
This procedure is only strictly necessary when switching to or from mode 1 because the PLL_N and PLL_K values are the same for 32/44.1/48/88.2/96kHz (modes 2/3/4) sample rate operation. It is, however, good interrupt service routine practice to write the appropriate PLL_N and PLL_K values when every clocking mode change is detected. The setup for 176.4 kHz and 192kHz are however slightly different. The setting up of these different configurations are described in the following paragraphs. 176.4KHZ OR 192K MODE ENABLE The difference between a sample rate of 176.4kHz and 192kHz requires the system to be configured slightly differently. This requires that the S/PDIF Rx sample rates are known (176.4kHz or 192kHz). Both sampling frequencies also require that the register bit SPD_192K_EN is set to a 1. If the SPD_192K_EN register bit is not set to a 1, then TRANS_ERR errors will be generated and this will result in the UNLOCK status being continually set (indicating an UNLOCK status). 176.4KHZ OPERATION To operate at fs=176.4 kHz, then the PLL_K and PLL_N settings should be set up as in mode 2/3/4. In this case the the PLL will lock onto the S/PDIF Rx data stream correctly if fs=176.4kHz. If however the sample rate is changed to fs=192kHz (and the PLL is not reconfigured) then the S/PDIF Rx interface will indicate UNLOCK and TRANS_ERR. The UNLOCK signal will continually toggle between a locked and unlocked state. 192KHZ OPERATION To operate at fs=192kHz, then the PLL_K and PLL_N settings should be set up as in mode 1. In this case the the PLL will lock onto the S/PDIF Rx data stream correctly if fs=192kHz. If however the sample rate is changed to fs=176.4kHz (and the PLL is not reconfigured) then the S/PDIF Rx interface will indicate UNLOCK and TRANS_ERR. The UNLOCK signal will continually toggle between a locked and unlocked state. Note that this is the default setting for hardware mode.
REGISTER ADDRESS R29 SPDRX1 1Dh
BIT 7
LABEL SPD_192K_EN
DEFAULT 1
DESCRIPTION S/PDIF Receiver 192kHz support enable 0 = disabled, S/PDIF receiver maximum supported sampling frequency is 96kHz 1 = enabled, S/PDIF receiver maximum supported sampling frequency is 192kHz
Table 32 176.4/192 kHz Sample Rate Enable
w
PD Rev 4.1 September 2007 29
WM8804
HARDWARE MODE INTERNAL CLOCKING
Production Data
In hardware mode, the user has no access to the internal clocking control registers and hence a default configuration is loaded at reset to provide maximum functionality. An overview of the hardware mode clocking scheme is shown in Figure 17.
Figure 17 Hardware Mode Clocking Scheme Overview The S/PDIF receiver is enabled and hence the PLL operates in S/PDIF receiver mode and all PLL and S/PDIF receiver control is fully automatic. All supported S/PDIF receiver sample rates can be used. Note also that the SPD_192K_EN register bit is set by default, thus supporting 192kHz sampling rate. The clock source for the S/PDIF transmitter is selected by TXSRC, which is latched from the CSB/GPO1 pin at reset. The clock source for the MCLK pin is selected by the AIF_MS bit which is latched from the SCLK pin at reset. FREQMODE control is fully automatic to ensure that the MCLK output is maintained at 256fs relative to the S/PDIF received sample rate. In hardware mode, the OSCCLK must be 12MHz and hence the external crystal (or applied XIN clock) must be 12MHz. No other OSCCLK frequencies are supported in hardware mode. Please refer to the Software Mode Internal Clocking section for detailed descriptions of the component blocks used in hardware mode.
w
PD Rev 4.1 September 2007 30
Production Data
WM8804
The S/PDIF transmitter generates the S/PDIF frames, and outputs on the TX0 pin. The transmitted data can be sourced from one of two places, selectable using the TXSRC register. The transmitter can be powered down using the SPDIFTXD register bit.
S/PDIF TRANSMITTER
REGISTER ADDRESS R6 PLL4 06H
BIT 5
LABEL TXVAL_SF0
DEFAULT 0
DESCRIPTION Overwrite Mode S/PDIF Transmitter Validity SubFrame 0 0 = transmit validity = 0 1 = transmit validity = 1 Overwrite Mode S/PDIF Transmitter Validity SubFrame 1 0 = transmit validity = 0 1 = transmit validity = 1 S/PDIF Transmitter Validity Overwrite Mode Enable 0 = disabled, validity bit is 0 when the S/PDIF transmitter sources PCM audio interface, or it matches the S/PDIF input validity when the S/PDIF transmitter sources the S/PDIF receiver. 1 = enabled, validity bit transmitted for subframe 0 is defined by TXVAL_SF0, validity bit transmitted for subframe 1 is defined by TXVAL_SF1. S/PDIF Transmitter Data Source 0 = S/PDIF received data. 1 = Audio interface received data S/PDIF Transmitter Channel Status Data Source 0 = Received channel status data 1 = Transmit channel status registers Note 1: Only used if TXSRC=0 Note 2: See section User Data below S/PDIF Transmitter Powerdown Enable 0 = S/PDIF transmitter enabled 1 = S/PDIF transmitter disabled
6
TXVAL_SF1
0
7
TXVAL_ OVWR
0
R21 SPDTX4 15h
6
TXSRC
1
7
TXSTATSRC
0
R30 PWRDN 1Eh
2
SPDIFTXPD
1
Table 33 S/PDIF Transmitter Control The WM8804 also transmits the preamble and VUCP bits (Validity, User Data, Channel Status and Parity bits).
VALIDITY BIT
By default, set to 0 (to indicate valid data) with the following exceptions: 1. 2. TXSRC=0 (S/PDIF receiver), where Validity is the value recovered from the S/PDIF input stream by the S/PDIF receiver. TXVAL_OVWR=1, where Validity is the value set in registers TXVAL_SF0 and TXVAL_SF1.
USER DATA
Set to 0 as User Data configuration is not supported in the WM8804 - if TXSRC=0 and TXSTATSRC =0 (S/PDIF receiver) User Data is set by the receiver.
w
PD Rev 4.1 September 2007 31
WM8804
CHANNEL STATUS
Production Data
The Channel Status bits form a 192-frame block transmitted one bit per sub-frame. Each sub-frame forms its own 192-frame block. The WM8804 is a consumer mode device and only the first 40 bits of the block are used. All data transmitted from the WM8804 is stereo, so the channel status data is the same for both channels. The only exception to this is the channel number bits [23:20] which can be changed to indicate if the channel is left or right in the stereo image. Bits within this block can be configured by setting the S/PDIF Transmitter Control registers (see Table 34 to Table 38). If TXSRC is set to configure the S/PDIF receiver as the transmit data source, the channel status bits are transmitted with the same values recovered by the receiver - unless TXSTATSRC is set, in which case they are set by the S/PDIF Transmitter Control registers.
PARITY BIT
This bit maintains even parity for data as a means of basic error detection. It is generated by the transmitter. REGISTER ADDRESS R18 SPDTX1 12h BIT LABEL CHANNEL STATUS BIT 0 DEFAULT DESCRIPTION
0
CON/PRO
0
Use Of Channel Status Block 0 = Consumer Mode 1 = Professional Mode (not supported by WM8804). Linear PCM Identification. 0 = S/PDIF transmitted data is audio PCM. 1 = S/PDIF transmitted data is not audio PCM. Copyright Information 0 = Transmitted data has copyright asserted. 1 = Transmitted data has no copyright assertion. Additional Format Information 000 = Data from Audio interface has no preemphasis. 001 = Data from Audio interface has preemphasis. All other modes are reserved and should not be used. Channel Status Mode 00 = Only valid mode for consumer applications.
1
AUDIO_N
1
0
2
CPY_N
2
0
5:3
DEEMPH[2:0]
5:3
000
7:6
CHSTMODE [1:0]
7:6
00
Table 34 S/PDIF Transmitter Channel Status Bit Control Register 1 REGISTER ADDRESS R19 SPDTX2 13h BIT LABEL CHANNEL STATUS BIT 15:8 DEFAULT DESCRIPTION
7:0
CATCODE [7:0]
00000000
Category Code Refer to S/PDIF specification (IEC 60958-3) for full details. 0x00h indicates "general" mode.
Table 35 S/PDIF Transmitter Channel Status Bit Control Register 2
w
PD Rev 4.1 September 2007 32
Production Data
WM8804
BIT LABEL CHANNEL STATUS BIT 19:16 DEFAULT DESCRIPTION
REGISTER ADDRESS R20 SPDTX3 14h
3:0
SRCNUM [3:0] CHNUM1[1:0]
0000
Source Number Refer to S/PDIF specification (IEC 60958-3) for full details. Channel Number for Subframe 1 CHNUM1 00 01 10 11 Channel Status Bits[21:20] Function Do not use channel number Send to Left Channel Send to Right Channel Do not use channel number Channel Status Bits[23:22] Function Do not use channel number Send to Left Channel Send to Right Channel Do not use channel number
5:4
21:20
00
7:6
CHNUM2[1:0]
23:22
00
Channel Number for Subframe 2 CHNUM2 00 01 10 11
Table 36 S/PDIF Transmitter Channel Status Bit Control Register 3
REGISTER ADDRESS R21 SPDTX4 15h
BIT
LABEL
CHANNEL STATUS BIT 27:24
DEFAULT
DESCRIPTION
3:0
FREQ[3:0]
0001
Indicated Sampling Frequency Refer to S/PDIF specification (IEC 60958-3) for full details. 0001 = Sampling Frequency not indicated. Clock Accuracy of Transmitted Clock 00 = Level II 01 = Level I 10 = Level III 11 = Interface frame rate not matched to sampling frequency.
5:4
CLKACU[1:0]
29:28
11
Table 37 S/PDIF Transmitter Channel Status Bit Control Register 4
w
PD Rev 4.1 September 2007 33
WM8804
REGISTER ADDRESS R22 SPDTX5 16h BIT LABEL CHANNEL STATUS BIT 32 DEFAULT DESCRIPTION
Production Data
0
MAXWL
1
Maximum Audio Sample Word Length 0 = 20 bits 1 = 24 bits Audio Sample Word Length. Used with MAXWL to indicate Tx word length 000 = Word length not indicated TXWL[2:0] 001 010 100 101 110 MAXWL==1 20 bits 22 bits 23 bits 24 bits 21 bits MAXWL==0 16 bits 18 bits 19 bits 20 bits 17 bits
3:1
TXWL[2:0]
35:33
101
All other combinations reserved 7:4 ORGSAMP [3:0] 39:36 0000 Original Sampling Frequency Refer to S/PDIF specification (IEC 60958-3) for full details.
Table 38 S/PDIF Transmitter Channel Status Bit Control Register 5
S/PDIF RECEIVER
The S/PDIF receiver has one input. This input can be configured as either single ended CMOS or as a 500mVp-p comparator input, depending upon the state of the SPDIFINMODE register. The S/PDIF receiver can be powered down if not in use by setting the SPDIFRXPD register bit. If the S/PDIF receiver is powered down the system will wait until the end of the current S/PDIF frame before powering down. REGISTER ADDRESS R30 PWRDN 1Eh R9 SPDMODE 09h BIT 1 LABEL SPDIFRXPD DEFAULT 1 DESCRIPTION S/PDIF Receiver Powerdown 0 = S/PDIF receiver enabled 1 = S/PDIF receiver disabled S/PDIF Input Mode Select Selects the input circuit type for the receiver input. 0 = CMOS input 1 = Comparator input. Compatible with 500mVppAC coupled consumer S/PDIF input signals. Refer to S/PDIF specification (IEC 60958-3) for full details.
0
SPDIFINMODE
1
Table 39 S/PDIF Receiver Input Selection Registers
w
PD Rev 4.1 September 2007 34
Production Data
WM8804
AUDIO DATA HANDLING
The S/PDIF receiver recovers the data and VUCP bits from each sub-frame. The WM8804 can detect when the data is not in PCM format. See Non-Audio Detection section for more detail. The received data can also be output over the audio interfaces in any of the data formats supported, or data may also be re-transmitted on TX0, de-jittering the data stream.
USER DATA
The WM8804 can output recovered user data via the GPO pins. See Table 52 for General Purpose Pin control.
CHANNEL STATUS DATA
The channel status bits are recovered from the incoming S/PDIF Rx data stream and are used to control various functions of the device. The S/PDIFRx interface always receives 24 bits of data in bits 4 to 27 of the SPDIF payload. The audio sample can be either 20 bits if AUX bits not used or up to 24bits if AUX bits used. So the audio sample can be 20,21,22,23 or 24 bit. The source (wherever the S/PDIF data is coming from) of the S/PDIF data stream must set the MAXWL and RXWL within the status bits to indicate the size of the audio sample. This is then recovered by the S/PDIF Rx interface. The S/PDIF Rx interface ALWAYS receives 24 bits, but if the actual length of the audio data sample (indicated by MAXWL and RXWL) is less than 24 bits, then the user has the option to truncate these 24 bits to the actual size. These truncated bits are then sent to either the SPDIF Tx or the AIF. Truncation may allow users to process data faster. If the user does not want this truncation to happen then they must mask the truncation using the WL_MASK. In this case all 24 bits of data received are transferred. The audio data sample can be transferred to either the AIF or the SPDIF Tx. When the audio data sample is transferred to the AIF, and if the AIF is operating in a mode which has less data bits, then the WM8804 will reduce the audio data sample to the length of the AIF. For example, if the AIF is operating in 16 bit mode, but the SPDIF Rx receives an audio data sample length of 21 bits, then the WM8804 will reduce the 21 bits to 16 bits by removing the LSBs. This cannot be masked. If the AIF is operating in 24 bit mode, then the full 21 bits are transferred on the AIF, with the LSBs set to 000. When the audio data sample is transferred to the SPDIF TX, then the full audio data sample (24 bits) is written to the SPDIF Tx. Unless it has been truncated using the WL-MASK bits It is assumed that the channel status is stereo and hence only channel one data is read. The channel status data is stored in five read-only registers which can be read back over the serial interface (see Serial Interface Read-back). The CSUD interrupt is asserted when the recovered channel status data is different to that currently stored in the read only registers. The registers are updated and the interrupt is asserted when the last bit of channels status data is recovered. The interrupt will remain asserted until one of the channel status registers is read. If another change to channel status data occurs before the last block has been read, the interrupt will de-assert when the first bit of differing channel status is received and will be asserted again when the last bit of the current channel status block is received. The register descriptions for the channel status bits are given in Table 40 to Table 44.
w
PD Rev 4.1 September 2007 35
WM8804
REGISTER ADDRESS R13 RXCHAN1 0Dh (read-only) BIT LABEL CHANNEL STATUS BIT 0 DEFAULT DESCRIPTION
Production Data
0
CON/PRO
0
Use Of Channel Status Block 0 = Consumer Mode 1 = Professional Mode The WM8804 is a consumer mode device. Detection of professional mode may give erroneous behaviour. Linear PCM Identification 0 = Data word represents audio PCM samples. 1 = Data word does not represent audio PCM samples. Copyright Information 0 = Copyright is asserted for Rx data. 1 = Copyright is not asserted for Rx data. Additional Format Information 0 = Recovered S/PDIF data has no preemphasis. 1 = Recovered S/PDIF data has preemphasis. Reserved for additional de-emphasis modes. Channel Status Mode 00 = Only valid mode for consumer applications.
1
AUDIO_N
1
0
2
CPY_N
2
0
3
DEEMPH
3
0
5:4 7:6
Reserved CHSTMODE [1:0]
5:4 7:6
00 00
Table 40 S/PDIF Receiver Channel Status Register 1
REGISTER ADDRESS R14 RXCHAN2 0Eh (read-only)
BIT
LABEL
CHANNEL STATUS BIT 15:8
DEFAULT
DESCRIPTION
7:0
CATCODE [7:0]
00000000
Category Code Refer to S/PDIF specification (IEC 60958-3) for full details. 0x00h indicates "general" mode.
Table 41 S/PDIF Receiver Channel Status Register 2
REGISTER ADDRESS R15 RXCHAN3 0Fh (read-only)
BIT
LABEL
CHANNEL STATUS BIT 19:16
DEFAULT
DESCRIPTION
3:0
SRCNUM [3:0] CHNUM1[1:0]
0000
S/PDIF Source Number Refer to S/PDIF specification (IEC 60958-3) for full details. Channel Number for Sub-frame 1 00 = do not use channel number 01 = channel 1 to left channel 10 = channel 1 to right channel Channel Number for Sub-frame 2 00 = do not use channel number 01 = channel 2 to left channel 10 = channel 2 to right channel
5:4
21:20
00
7:6
CHNUM2[1:0]
23:22
00
Table 42 S/PDIF Receiver Channel Status Register 3 PD Rev 4.1 September 2007 36
w
Production Data
WM8804
BIT LABEL CHANNEL STATUS BIT 27:24 DEFAULT DESCRIPTION
REGISTER ADDRESS R16 RXCHAN4 10h (read-only)
3:0
FREQ[3:0]
0001
Indicated Sampling Frequency Refer to S/PDIF specification (IEC 60958-3) for full details. Clock Accuracy of Received Clock 00 = Level II 01 = Level I 10 = Level III 11 = Interface frame rate not matched to sampling frequency.
5:4
CLKACU[1:0]
29:28
11
Table 43 S/PDIF Receiver Channel Status Register 4
REGISTER ADDRESS R17 RXCHAN5 11h (read-only)
BIT
LABEL
CHANNEL STATUS BIT 32
DEFAULT
DESCRIPTION
0
MAXWL
1
Maximum Audio Sample Word Length 0 = 20 bits 1 = 24 bits Note: see table in description of bits 3:1 of this register, Audio Sample Word Length 000: Word length not indicated RXWL[2:0] 001 010 100 101 110 MAXWL==1 20 bits 22 bits 23 bits 24 bits 21 bits MAXWL==0 16 bits 18 bits 19 bits 20 bits 17 bits
3:1
RXWL[2:0]
35:33
000
All other combinations are reserved and should not be used. See note 1. 7:4 ORGSAMP [3:0] 39:36 0000 Original Sampling Frequency Refer to S/PDIF specification (IEC 60958-3) for full details.
Table 44 S/PDIF Receiver Channel Status Register 5 Note 1: MAXWL and RXWL[2:0] bits in recovered channel status data are used to truncate digital audio interface transmitted data. Truncation replaces the lower data bits with 0. Truncation can be masked using the WL_MASK control bit. Truncation can be masked by the WL_MASK Refer to received channel status bit description.
w
PD Rev 4.1 September 2007 37
WM8804
S/PDIF RECEIVER STATUS FLAGS
Production Data
There are several S/PDIF receiver status flags which are recorded by the WM8804. The flags are described in Table 45. These flags are available via GPIO pins or status registers. FLAG UNLOCK DESCRIPTION Unlock Flag Indicates that the S/PDIF Rx clock recovery circuit is unlocked. 0 = Locked onto incoming S/PDIF stream. 1 = Not locked onto the incoming S/PDIF stream. Invalid Flag Indicates that recovered S/PDIF data is marked as invalid. 0 = Data marked as valid 1 = Data marked as invalid Transmission Error Flag Indicates that a transmission error has occurred. This signal is asserted when the preamble sequence is incorrectly received or there is a parity error or a bi-phase mark encoding error. 0 = No error detected in transmission 1 = Error in transmission Audio Status Flag Recovered Channel Status bit 1. 0 = Data word represents audio PCM samples. 1 = Data word does not represent audio PCM samples. Non-PCM Flag Indicates that non-audio code (defined in IEC-61937) has been detected. 0 = Sync code not detected. 1 = Sync code detected - received data is not audio PCM. Zero Flag Indicates detection of 1024 consecutive all zero frames 0 = 1024 consecutive all zero frames not detected 1 = 1024 consecutive all zero frames detected Non-Copyright Flag Recovered Channel Status bit 2. 0 = Copyright is asserted for this data. 1 = Copyright is not asserted for this data. Note this signal is inverted and will cause an interrupt on logic 0. Recovered Frequency Flag Indicates recovered S/PDIF clock frequency: 00 = 192kHz 01 = 96kHz or 88.2kHz 10 = 48kHz or 44.1kHz 11 = 32kHz Interrupt Signal 0 = Interrupt has occurred 1 = No interrupt has occurred Recovered validity bit for current sub-frame Recovered user bit for current sub-frame Recovered channel status bit for current sub-frame Sub-frame clock. 1 = Current sub-frame is sub-frame A 0 = Current sub-frame is sub -frame B Start OF 192 Frame Sequence Flag Indicates start of 192 frame block. Asserted duration of frame 0. General Error Flag Logical OR of TRANS_ERR, NON_AUDIO and UNLOCK. Used only in Hardware Control Mode VISIBILITY S/PDIF Status Register, GPO, CSB -hardware mode Interrupt Status Reg
INVALID
TRANS_ERR
Interrupt Status Reg, GPO, SCLK -hardware mode
AUDIO_N
Channel Status Register, S/PDIF Status Register S/PDIF Status Register
PCM_N
ZEROFLAG
GPO
CPY_N
Channel Status Register, S/PDIF Status Register, GPO S/PDIF Status Register
REC_FREQ[1:0]
INT_N
GPO
V U C SFRM_CLK
GPO GPO GPO GPO
192BLK GEN_FLAG
GPO GPO0 - hardware Mode PD Rev 4.1 September 2007 38
w
Production Data NON_AUDIO Non-Audio Flag Logical OR of PCM_N and AUDIO_N
WM8804
Interrupt status register, GPO, SDOUT - hardware mode Interrupt status register, GPO S/PDIF Status Register, GPO
CSUD
Channel Status Update Indicates that channel status registers have updated and may be read back over the serial interface. De-emphasis Flag 0 = Recovered data has no pre-emphasis 1 = Recovered data has pre-emphasis
DEEMPH
Table 45 S/PDIF Receiver Status Flags Description
`WITH FLAGS' MODE
The WM8804 features a `With Flags' mode to enable the user to append status flags to the audio sample streamed transmitted from the digital audio interface. When WITHFLAG is set to 1 `With Flags' mode is enabled and the flags in Table 47 are appended to the LSB of the audio sample. If WITHFLAG is set to 0 `With Flags' mode is disabled and only the audio sample is transmitted from the digital audio interface. REGISTER ADDRESS R29 SPDRX1 1Dh BIT 4 LABEL WITHFLAG DEFAULT 0 DESCRIPTION Enable With Flags Mode 0 = Disabled 1 = Enabled
Table 46 With Flags Mode Control Register WITH FLAGS BIT ORDER 0 1 2 3 4 5 6 7 FLAG V U C 192BLK CSUD TRANS_ERR UNLOCK NON_AUDIO
Table 47 Flags Appended to Audio Sample in `With Flags' Mode Diagrams illustrating `With Flags' mode for each audio data format can be found on page 48 of the data sheet (Figure 23 to Figure 27). Note: 24-bit RJ digital audio interface mode does not support `With Flags' mode.
w
PD Rev 4.1 September 2007 39
WM8804
INTERRUPT GENERATION
Production Data
The INT_N flag indicates that a change of status has occurred on one or more of the UNLOCK, INVALID, TRANS_ERR, CSUD, NON_AUDIO, CPY_N, REC_FREQ or DEEMPH status flags. To identify which flag caused the interrupt, the Interrupt Status Register (INTSTAT) must be read. INVALID and TRANS_ERR are level sensitive interrupts. When these signals are high an interrupt will be generated. The interrupt can be cleared by reading the interrupt status register, however, the interrupt will re-assert if the signal is still high. CSUD and REC_FREQ will generate an interrupt on a low to high transition and can be cleared by reading the interrupt status register. Once clear the interrupt will not re-assert until another low to high transition occurs. NON_AUDIO, CPY_N, UNLOCK and DEEMPH will generate an update signal on any change in flag status. The interrupt and update signals are latched and will remain asserted until they are cleared by reading the Interrupt Status Register.
REGISTER ADDRESS R11 INTSTAT 0Bh (read-only)
BIT 0
LABEL
UPD_UNLOCK
DEFAULT -
DESCRIPTION UNLOCK update signal 0 = INT_N not caused by a toggle of UNLOCK flag 1 = INT_N caused by a toggle of UNLOCK flag INVALID flag interrupt signal 0 = INT_N not caused by INVALID flag 1 = INT_N caused by INVALID flag INT_CSUD interrupt signal 0 = INT_N not caused by CSUD flag 1 = INT_N caused by CSUD flag TRANS_ERR flag interrupt signal 0 = INT_N not caused by TRANS_ERR flag 1 = INT_N caused by TRANS_ERR flag NON_AUDIO update signal 0 = INT_N not caused by a toggle of AUDIO_N or PCM_N flags 1 = INT_N caused by a toggle of AUDIO_N or PCM_N flags CPY_N update signal 0 = INT_N not caused by assertion of CPY_N flag 1 = INT_N caused assertion of CPY_N flag DEEMPH update signal 0 = INT_N not caused by a toggle of DEEMPH flag 1 = INT_N caused by a toggle of DEEMPH flag REC_FREQ update signal 0 = INT_N not caused by assertion of REC_FREQ flag 1 = INT_N caused by assertion of REC_FREQ flag
1
INT_INVALID
-
2
INT_CSUD
-
3
INT_TRANS_ERR
-
4
UPD_NON_AUDIO
-
5
UPD_CPY_N
-
6
UPD_DEEMPH
-
7
UPD_REC_FREQ
-
Table 48 Interrupt Status Register
w
PD Rev 4.1 September 2007 40
Production Data
WM8804
Where the INT_N has been asserted by an update signal (UPD_NON_AUDIO, UPD_CPY_N, UPD_REC_FREQ, UPD_UNLOCK or UPD_DEEMPH) the S/PDIF Status Register (SPDSTAT) can be interrogated to establish the updated value of the flag.
REGISTER ADDRESS R12 SPDSTAT 0Ch (read-only)
BIT
0
LABEL
AUDIO_N
DEFAULT
-
DESCRIPTION Audio Status Flag Recovered channel status bit-1. 0 = Data word represents audio PCM samples. 1 = Data word does not represent audio PCM samples. Non-PCM Flag Indicates that non-audio code (defined in IEC-61937) has been detected. 0 = Sync code not detected. 1 = Sync code detected - received data is not audio PCM. Non-Copyright Flag Recovered Channel Status bit-2. 0 = Copyright is asserted for this data. 1 = Copyright is not asserted for this data. De-emphasis Flag Recovered Channel Status bit-3. 0 = Copyright is asserted for this data. 1 = Copyright is not asserted for this data. Recovered Frequency Flag Indicates recovered S/PDIF clock frequency: 00 = 192kHz 01 = 96kHz or 88.2kHz 10 = 48kHz or 44.1kHz 11 = 32kHz Unlock Flag Indicates that the S/PDIF Rx clock recovery circuit is unlocked. 0 = Locked onto incoming S/PDIF stream. 1 = Not locked onto the incoming S/PDIF stream.
1
PCM_N
-
2
CPY_N
-
3
DEEMPH
-
5:4
REC_FREQ [1:0]
--
6
UNLOCK
-
Table 49 S/PDIF Status Register The interrupt and update signals used to generate INT_N can be masked at the users discretion. The MASK register bit (Table 50) prevents flags from asserting INT_N and from updating the Interrupt Status Register.
REGISTER ADDRESS R10 INTMASK 0Ah
BIT 7:0
LABEL MASK[7:0]
DEFAULT 00000000
DESCRIPTION Interrupt Mask Enable When a flag is masked, it does not update the Interrupt Status Register or cause an INT_N interrupt to be asserted. 0 = unmask, 1 = mask. MASK[0] = mask control for UPD_UNLOCK MASK[1] = mask control for INT_INVALID MASK[2] = mask control for INT_CSUD MASK[3] = mask control for INT_TRANS_ERR MASK[4] = mask control for UPD_NON_AUDIO MASK[5] = mask control for UPD_CPY_N MASK[6] = mask control for UPD_DEEMPH MASK[7] = mask control for UPD_REC_FREQ
Table 50 Interrupt Mask Control Register
w
PD Rev 4.1 September 2007 41
WM8804
ERROR HANDLING IN SOFTWARE MODE
Production Data
When the TRANS_ERR flag is asserted, it indicates that the recovered Rx S/PDIF sub-frame is corrupted. This corruption can due to a BI-Phase error, a parity error or a pre-amble error. When the INVALID flag is asserted, it indicates that the recovered Rx S/PDIF sub-frame has been marked as being invalid by the source of the S/PDIF data. Both TRANS_ERR and INVALID indicate an error. The S/PDIF receiver has two modes of handling for these errors, manual and automatic. The mechanism for each flag is similar. The mechanisms are described below. MANUAL ERROR HANDLING This manual handling of errored Rx S/PDIF data can be used when an application processor is being interrupted via the INT_N signal. Appropriate action should be taken by the application processor to handle the error condition If the TRANS_ERR and INVALID error flags are not masked using the MASK register, the recovered S/PDIF Rx data is passed to the digital audio interface or to the S/PDIF transmitter irrespective of the state of the flag and the data content of the recovered stream.(Also refer to note below). In this case, the application processor will be interrupted via the INT_N signal. AUTOMATIC ERROR HANDLING This automatic handling of errored Rx S/PDIF data can be used when an application processor is not being interrupted via the INT_N signal leaving the WM8804 to handle the error condition. If the TRANS_ERR and INVALID error flags are masked using the MASK register, the WM8804 output data from the S/PDIF Rx interface depends on the setting of FILLMODE. If FILLMODE=1, then the incoming data (which is errored) is overwritten with 0's. If FILLMODE=0, then the last valid data sample is repeatedly output. For the INVALID flag, the automatic error handling can be disabled if ALWAYSVALID =1. If ALWAYSVALID is set, then the recovered Rx S/PDIF data, which is marked as invalid, will be allowed to pass to the digital audio interface or to the S/PDIF transmitter. The data will not be modified in any way. Note: For the S/PDIF receiver to S/PDIF transmitter data path, only the INVALID flag will cause data to be overwritten, the TRANS_ERR flag is not used to overwrite data which is passed to the S/PDIF transmitter.
REGISTER ADDRESS R8 PLL6 08h
BIT 5
LABEL FILLMODE
DEFAULT 0
DESCRIPTION Fill Mode Overwrite Configuration Determines S/PDIF receiver action when TRANS_ERR or INVALID flag is masked and error condition sets the flag: 0 = Data from S/PDIF receiver is overwritten with last valid data sample when flag is set. 1 = Data from S/PDIF receiver is overwritten as all zeros when flag is set. Automatic Error Handling Configuration for INVALID Flag 0 = INVALID flag automatic error handling enabled. 1 = INVALID flag automatic error handling disabled.
6
ALWAYSVALID
0
Table 51 S/PDIF Receiver Automatic Error Handling Configuration Registers
w
PD Rev 4.1 September 2007 42
Production Data
WM8804
NON-AUDIO DETECTION
The SPDIF payload can contain PCM data for audio or non-audio applications. In the case where the payload contains the 96 bit synchronization code defined in IEC61937 then this indicates that the payload contains data which is not suitable for direct playback through an audio codec. This 96 bit code is defined as 4*16bits of `0'+Pa (16bits)+Pb (16bits).. If the S/PDIFRx interface decodes this sync code then it sets the PCM_N bit. When the PCM_N =1, then it indicates non-audio data. When the PCM_N =0, then it indicates that the SPDIF payload does not contain the synch code..
Another status bit, AUDIO_N status is recovered from the Channel Status block. It is bit 1 of the channel status. When AUDIO_N =0, then it indicates that the SPDIF payload contains audio PCM encoded data. This is also referred to as linear PCM data. When the AUDIO_N= 1, then it indicates that the SPDIF payload does not contain audio PCM data.
NON_AUDIO data is indicated by a logical OR of the AUDIO_N and PCM_N flags. Any change of AUDIO_N or PCM_N status will cause an INT_N interrupt (UPD_NON_AUDIO) to be generated. If the MASK register bit for AUDIO_N or PCM_N is set, then the associated signal will not generate an interrupt (UPD_NON_AUDIO).
GENERAL PURPOSE OUTPUT (GPO) CONFIGURATION
The WM8804 has a maximum of three configurable GPO pins depending upon the mode of operation of the device. By default GPO0 is available, however if 2-wire Software Control Mode is selected the CSB pin becomes GPO1 and the SDOUT pin becomes GPO2. REGISTER ADDRESS R23 GPO0 17h BIT 3:0 LABEL GPO0[3:0] DEFAULT 0000 (INT_N) DESCRIPTION Flags and status bits available on GPO pins 0000 = INT_N 0001 = V 0010 = U 0011 = C 0100 = TRANS_ERR 0101 = SFRM_CLK 0110 = 192BLK 0111 = UNLOCK 1000 = NON_AUDIO 1001 = CSUD 1010 = DEEMPH 1011 = CPY_N 1100 = ZEROFLAG 1101 = 0 1111 = 0
R24 GPO1 18h
3:0
GPO1[3:0]
0111 (UNLOCK)
R26 GPO2 1Ah
7:4
GPO2[3:0]
0100 (TRANS_ERR)
Note 1: GPO1 and GPO2 are only available in 2wire software control mode. Note 2: Refer to Table 45 for signal descriptions
Table 52 GPO Control Registers
w
PD Rev 4.1 September 2007 43
WM8804
DIGITAL AUDIO INTERFACE
Production Data
Audio data is transferred to and from the WM8804 via the digital audio interface. Data from the digital audio interface transmitter may be passed to the S/PDIF transmitter or data from the S/PDIF receiver may be output on the digital audio interface receiver. The digital audio interface can be powered down using the AIFPD register bit described in Table 53. REGISTER ADDRESS R30 PWRDN 1Eh BIT 5 LABEL AIFPD DEFAULT 1 DESCRIPTION Digital Audio Interface Power Down 1 = Power down 0 = Power up
Table 53 Digital Audio Interface Power Down Control
MASTER AND SLAVE MODES
The audio interface operates in either slave or master mode, selectable using the AIF_MS bit (see Table 55). In both master and slave modes DIN is always an input and DOUT is always an output. The default is slave mode. In slave mode (AIF_MS=0), LRCLK and BCLK are inputs. DIN and LRCLK are sampled on the rising edge of BCLK. Data output, DOUT, changes on the falling edge of BCLK and the polarity of BCLK may be reversed independently on the transmit and receive sides of the interface using the AIFRX_BCP and AIFTX_BCP control bits, see Table 56. In master mode (AIF_MS=1), LRCLK and BCLK are generated by the WM8804. As in slave mode, DIN is sampled on the rising edge of BCLK, and DOUT changes on the falling edge of BCLK and the polarity of BCLK may be reversed the transmit and receive sides of the interface with the AIFRX_BCP and AIFTX_BCP control bits. The frequencies of LRCLK are derived from MCLK and are dependant on the MCLKDIV control bit. Table 54 shows the settings for MCLKDIV for common sample rates and MCLK frequencies. SAMPLING RATE (LRCLK) MASTER CLOCK (MCLK) FREQUENCY (MHZ) 128fs MCLKDIV = 1 32kHz 44.1kHz 48kHz 96kHz 192kHz 4.096 5.6448 6.144 12.288 24.576 256fs MCLKDIV = 0 8.192 11.2896 12.288 24.576 Unavailable
Table 54 Master Mode LRCLK Frequency Selection
BCLK is also generated by the WM8804. The frequency of BCLK depends on the mode of operation. In 128fs mode (MCLKDIV = 1) BCLK = MCLK/2. In 256fs mode (MCLKDIV = 0) BCLK = MCLK/4. However if DSP mode is selected as the audio interface mode then BCLK=MCLK. Note that DSP mode cannot be used in 128fs mode for data word lengths greater than 16-bits. Master/slave mode is selected with the following register: REGISTER ADDRESS R28 AIFRX 1Ch BIT 6 LABEL AIF_MS DEFAULT 0 DESCRIPTION Audio Interface Master/Slave Mode Select 0 = Slave mode - MCLK, LRCLK and BCLK are inputs 1 = Master mode - MCLK, LRCLK and BCLK are outputs
Table 55 Master/Slave Mode Select Register
w
PD Rev 4.1 September 2007 44
Production Data
WM8804
Five interface formats are supported: * * * * * Left Justified Mode Right Justified Mode I2S Mode DSP Mode A DSP Mode B
AUDIO DATA FORMATS
The MSB is sent first in all formats. Word lengths of 16, 20 and 24 bits are supported. Audio data for each stereo channel is clocked with the BCLK signal. Data is time multiplexed with the LRCLK, indicating whether the left or right channel data is present. The LRCLK is also used as a timing reference to indicate the beginning or end of the data words. In Left Justified, Right Justified and I2S modes the minimum number of BCLKs per LRCLK period is two times the number of bits in the selected word length. LRCLK must be high for a minimum of n BCLKs and low for a minimum of n BCLKs, where n is the number of bits in an audio word. Any mark to space ratio on LRCLK is acceptable provided the above requirements are met. The data may also be output in DSP Mode A or Mode B, with LRCLK used as a frame sync to identify the MSB of the first word. The minimum number of BCLKs per LRCLK period is two times the number of bits in the word length.
LEFT JUSTIFIED MODE
In Left Justified mode, the MSB of DIN is sampled by the WM8804 on the first rising edge of BCLK following an LRCLK transition. The MSB of the output data (DOUT) changes on the same falling edge of BCLK as LRCLK and may be sampled on the next rising edge of BCLK. LRCLK is high during the left samples and low during the right samples (Figure 18).
1/fs
LEFT CHANNEL LRCLK
RIGHT CHANNEL
BCLK
DIN / DOUT
1
2
3
n-2 n-1
n
1
2
3
n-2 n-1
n
MSB
LSB
MSB
LSB
Figure 18 Left Justified Mode
w
PD Rev 4.1 September 2007 45
WM8804
RIGHT JUSTIFIED MODE
Production Data
In Right Justified Mode, the LSB of DIN is sampled by the WM8804 on the rising edge of BCLK preceding an LRCLK transition. The LSB of the output data (DOUT) changes on the falling edge of BCLK preceding an LRCLK transition, and may be sampled on the next rising edge of BCLK. LRCLK is high during the left samples and low during the right samples (Figure 19).
1/fs
LEFT CHANNEL LRCLK
RIGHT CHANNEL
BCLK
DIN / DOUT
1
2
3
n-2 n-1
n
1
2
3
n-2 n-1
n
MSB
LSB
MSB
LSB
Figure 19 Right Justified Mode
2
I S MODE
In I2S Mode, the MSB of DIN is sampled by the WM8804 on the second rising edge of BCLK following an LRCLK transition. The MSB of the output data changes on the first falling edge of BCLK following an LRCLK transition, and may be sampled on the next rising edge of BCLK. LRCLK is low during the left samples and high during the right samples (Figure 20).
1/fs
LEFT CHANNEL LRCLK
RIGHT CHANNEL
BCLK 1 BCLK DIN / DOUT 1 2 3 n-2 n-1 n 1 BCLK 1 2 3 n-2 n-1 n
MSB
LSB
MSB
LSB
Figure 20 I2S Mode
w
PD Rev 4.1 September 2007 46
Production Data
WM8804
DSP MODE A
In DSP Mode A, the MSB of the left channel data is sampled by the WM8804 on the second rising edge of BCLK following an LRCLK rising edge. The right channel data follows the left channel data (Figure 21). The MSB of the left channel of the output data changes on the first falling edge of BCLK following a low to high LRCLK transition and may be sampled on the rising edge of BCLK. The right channel data is contiguous with the left channel data (Figure 21).
1 BCLK 1 BCLK
1/fs
LRCLK
BCLK
LEFT DIN / DOUT 1 MSB 2 n-1 n LSB 1 2
RIGHT n-1 n
NO VALID DATA
Input Word Length (IWL)
Figure 21 DSP Mode A
DSP MODE B
In DSP Mode B, the MSB of the left channel data is sampled by the WM8804 on the first BCLK rising edge following a LRCLK rising edge. The right channel data follows the left channel data (Figure 22). The MSB of the output data changes on the same falling edge of BCLK as the low to high LRCLK transition and may be sampled on the rising edge of BCLK. The right channel data is contiguous with the left channel data (Figure 22).
1/fs
LRCLK
BCLK
LEFT DIN / DOUT 1 MSB 2 n-1 n LSB 1 2
RIGHT n-1 n
NO VALID DATA
1
Input Word Length (IWL)
Figure 22 DSP Mode B
w
PD Rev 4.1 September 2007 47
WM8804
`WITH FLAGS' MODE
Production Data
The following diagrams illustrate the position of the status flags within the audio sample for each audio data format when `With Flags' Mode is enabled. `With Flags' Mode is only available on pin DOUT. The WM8804 does not support Right Justified 24-Bit `With Flags' Mode.
Figure 23 Left Justified `With Flags' Mode
Figure 24 Right Justified `With Flags' Mode
Figure 25 I2S `With Flags' Mode
w
PD Rev 4.1 September 2007 48
Production Data
WM8804
Figure 26 DSP Mode A `With Flags'
Figure 27 DSP Mode B `With Flags'
w
PD Rev 4.1 September 2007 49
WM8804
AUDIO INTERFACE CONTROL
Production Data
The register bits controlling the audio interface are summarised below. Note that dynamically changing the audio data format may cause erroneous operation, and hence is not recommended. REGISTER ADDRESS R29 SPDIFRX1 1Dh BIT 4 LABEL WITHFLAG DEFAULT 0 DESCRIPTION `With Flags' Mode Select 0: `With Flags' Mode disabled (see Note 3) 1: `With Flags' Mode enabled S/PDIF Receiver Word Length Truncation Mask 0 = disabled, data word is truncated as described in Table 44 S/PDIF Receiver Channel Status Register 5 1 = enabled, data word is not truncated. Audio Data Format Select 11: DSP mode 10: I2S mode 01: Left justified mode 00: Right justified mode Audio Data Word Length 11: 24 bits (see notes 1/2/3/6) 10: 24 bits (see notes 1/2/3/6) 01: 20 bits 00: 16 bits BCLK invert (for master and slave modes) 0 = BCLK not inverted 1 = BCLK inverted Right, left and I2S modes - LRCLK polarity and DSP mode select 1 = invert LRCLK polarity / DSP Mode B 0 = normal LRCLK polarity / DSP Mode A Audio Data Format Select 11: DSP mode 2 10: I S mode 01: Left justified mode 00: Right justified mode Audio Data Word Length 11: 24 bits (see note 1/2/3/6) 10: 24 bits 01: 20 bits 00: 16 bits BCLK Invert (for master and slave modes) 0 = BCLK not inverted 1 = BCLK inverted See Note 4 Right, left and I S modes - LRCLK polarity and DSP mode select 1 = invert LRCLK polarity / DSP Mode B 0 = normal LRCLK polarity / DSP Mode A See Note 5
2
6
WL_MASK
0
R27 AIFTX 1Bh
1:0
AIFTX_FMT[1:0]
10
3:2
AIFTX_WL[1:0]
01
4
AIFTX_BCP
0
5
AIFTX_LRP
0
R28 AIFRX 1Ch
1:0
AIFRX_FMT[1:0]
10
3:2
AIFRX_WL[1:0]
01
4
AIFRX_BCP
0
5
AIFRX_LRP
0
Table 56 Audio Interface Control
w
PD Rev 4.1 September 2007 50
Production Data Note 1: S/PDIF data frames contain a maximum of 24-bits of audio data. Note 2:
WM8804
In 24 bit I2S mode, any data width of 24 bits or less is supported provided that LRCLK is high for a minimum of 24 BCLK cycles and low for a minimum of 24 BCLK cycles (48 BCLK cycles). If exactly 32 BCLK cycles occur in one LRCLK (16 high, 16 low) the chip will auto detect and operate in 16 bit data word length mode.
Note 3: 24 bit Right Justified `With Flags' Mode is not supported. Note 4: Must be set to the same value as AIFTX_BCP. Note 5: Must be set to the same value as AIFTX_LRP. Note 6: MAXWL and RXWL[2:0] bits in recovered channel status data are used to truncate digital audio interface transmitted data. The truncation replaces the lower data bits with 0. Refer to received channel status bit description.
w
PD Rev 4.1 September 2007 51
WM8804
REGISTER MAP
Production Data
The complete register map is shown below. The detailed description can be found in the relevant text of the device description. The WM8804 can be configured using the Control Interface. Any unused bits which are not specified should be set to `0' . Not all registers can be read. Only the device ID (registers R0, R1 and R2) and the status registers can be read. These status registers are labelled as "read only".
REGISTER R0 R1 R2 R3 R4 R5 R6 R7 R8 R9 R10 R11 R12 R13 R14 R15 R16 R17 R18 R19 R20 R21 R22 R23 R24 R25 R26 R27 R28 R29 R30 GPO2 AIFTX AIFRX SPDRX1 PWRDN NAME RST/DEVID 1 DEVID2 DEVREV PLL1 PLL2 PLL3 PLL4 PLL5 PLL6 SPDMODE INTMASK INTSTAT SPDSTAT RXCHAN1 RXCHAN2 RXCHAN3 RXCHAN4 RXCHAN5 SPDTX1 SPDTX2 SPDTX3 SPDTX4 SPDTX5 GPO0 GPO1 ADDRESS [0:7] 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 0 0 SPD_192K_EN 0 0 AIF_MS WL_MASK 0 0 0 0 1 1 0 GPO2[3:0] AIFTX_LRP AIFRX_LRP 0 TRIOP AIFTX_BCP AIFRX_BCP WITHFLAG AIFPD CHNUM2[1:0] TXSTATSRC TXSRC ORGSAMP[3:0] 1 0 1 1 1 1 0 0 AIFTX_WL[1:0] AIFRX_WL[1:0] CONT OSCPD SPDIFTXPD 1 0 CHNUM1[1:0] CLKACU[1:0] CHSTMODE[1:0] 0 TXVAL_ OVWR 0 MCLKSRC 1 0 TXVAL_SF1 0 ALWAYSVALID 1 TXVAL_SF0 PRESCALE MCLKDIV CLKOUTSRC 1 MASK[7:0] Interrupt Status S/PDIF Status RX Channel Info 1 RX Channel Info 2 RX Channel Info 3 RX Channel Info 4 RX Channel Info 5 DEEMPH[2:0] CATCODE[7:0] SRCNUM[3:0] FREQ[3:0] TXWL[2:0] GPO0[3:0] GPO1[3:0] 1 1 AIFTX_FMT[1:0] AIFRX_FMT[1:0] READMUX[2:0] SPDIFRXPD PLLPD 0 0 MAXWL CPY_N AUDIO_N CON/PRO FRACEN 0 1 0 1 0 0 0 B7 B6 B5 B4 B3 B2 B1 B0 DEFAULT read only DEVREV[3:0] PLL_K[7:0] PLL_K[15:8] PLL_K[21:16] PLL_N[3:0] FREQMODE[1:0] 0 SPDIFINMODE read only 00100001 11111101 00110110 00000111 00010110 00011000 11111111 00000000 read only read only read only read only read only read only read only 00000000 00000000 00000000 01110001 00001011 01110000 01010111 00110110 01000010 00000110 00000110 10000000 00000111
write: RESET read: DEVICEID[7:0] DEVICEID[15:8] 0
CLKOUTDIV[1:0] FILLMODE 1 CLKOUTDIS 1
Table 57 WM8804 Register Map
w
PD Rev 4.1 September 2007 52
Production Data
WM8804
REGISTER ADDRESS R00 RST/DEVID1 00h R01 DEVID2 01h (read only) R02 DEVREV 02h R3 PLL1 03h R4 PLL2 04h R5 PLL3 05h R6 PLL4 06h BIT LABEL DEFAULT DESCRIPTION Writing to this register will apply a reset to the device. Reading from this register will return the second part of the device ID 00000101 = 05h Reading from this register will return the first part of the device ID 10001000 = 88h
7:0
RESET
-
7:0
DEVID2
10001000
3:0
DEVREV[3:0]
-
7:0
PLL_K[7:0]
00100001
7:0
PLL_K[15:8]
11111101
5:0
PLL_K[21:16]
00110110
Fractional (K) part of PLL frequency ratio (R). Value K is one 22-digit binary number spread over registers R3, R4 and R5 as shown. Note: PLL_K must be set to specific values when the S/PDIF receiver is used. Refer to S/PDIF Receiver clocking section for details.
3:0
PLL_N[3:0]
0111
Integer (N) part of PLL frequency ratio (R). Use values in the range 5 PLL_N 13 as close as possible to 8 Note: PLL_N must be set to specific values when the S/PDIF receiver is used. Refer to S/PDIF Receiver clocking section for details. PLL Pre-scale Divider Select 0 = Divide by 1 (PLL input clock = oscillator clock) 1 = Divide by 2 (PLL input clock = oscillator clock / 2) Overwrite Mode S/PDIF Transmitter Validity Sub-Frame 0 0 = transmit validity = 0 1 = transmit validity = 1 Overwrite Mode S/PDIF Transmitter Validity Sub-Frame 1 0 = transmit validity = 0 1 = transmit validity = 1 S/PDIF Transmitter Validity Overwrite Mode Enable 0 = disabled, validity bit is 0 when the S/PDIF transmitter sources PCM audio interface, or it matches the S/PDIF input validity when the S/PDIF transmitter sources the S/PDIF receiver. 1 = enabled, validity bit transmitted for subframe 0 is defined by TXVAL_SF0, validity bit transmitted for subframe 1 is defined by TXVAL_SF1.
4
PRESCALE
0
5
TXVAL_SF0
0
6
TXVAL_SF1
0
7
TXVAL_ OVWR
0
w
PD Rev 4.1 September 2007 53
WM8804
REGISTER ADDRESS R7 PLL5 07h BIT 1:0 LABEL FREQMODE[1:0] DEFAULT 10 DESCRIPTION
Production Data
PLL Post-scale Divider Select Selects the PLL output divider value in conjunction with MCLKDIV and CLKOUTDIV. Refer to Table 23 for details of FREQMODE operation. Note: FREQMODE[1:0] bits are automatically set in S/PDIF Receive Mode. Integer/Fractional PLL Mode Select 0 = Integer PLL (PLL_N value used, PLL_K value ignored) 1 = Fractional PLL (both PLL_N and PLL_K values used) Note: FRACEN must be set to enable the fractional PLL when using S/PDIF Receive Mode. MCLK Divider Select (Only valid when CLK2 is selected as MCLK output source) See Table 23 for MCLKDIV configuration in PLL user mode. See Table 28 for MCLKDIV configuration in PLL S/PDIF receive mode. CLKOUT Divider Select (Only valid when CLK1 is selected as CLKOUT output source) See Table 23 for CLKOUTDIV[1:0] configuration in PLL user mode. See Table 28 for CLKOUTDIV[1:0] configuration in PLL S/PDIF receive mode. CLKOUT Pin Source Select 0 = Select CLK1 1 = Select OSCCLK CLKOUT Pin Disable 0 = Pin Disabled (Pin tri-stated) 1 = Pin Enabled Fill Mode Select Determines S/PDIF receiver action when corrupt or invalid data is detected: 0 = Data from S/PDIF receiver remains static at last valid sample. 1 = Data from S/PDIF receiver is output as all zeros. Always Valid Select Used to ignore the INVALID flag. 0 = Use INVALID flag. 1 = Ignore INVALID flag. MCLK Output Source Select 0 = Select CLK2 1 = Select OSCCLK
2
FRACEN
1
3
MCLKDIV
0
5:4
CLKOUTDIV[1:0]
01
R8 PLL6 08h
3
CLKOUTSRC
1
4
CLKOUTDIS
1
5
FILLMODE
0
6
ALWAYSVALID
0
7
MCLKSRC
0
w
PD Rev 4.1 September 2007 54
Production Data REGISTER ADDRESS R9 SPDMODE 09h BIT 0 LABEL SPDIFINMODE DEFAULT 1 DESCRIPTION
WM8804
S/PDIF Input Mode Select Selects the input circuit type for the receiver input. 0 = CMOS input 1 = Comparator input. Compatible with 500mVppAC coupled consumer S/PDIF input signals. Refer to S/PDIF specification (IEC 60958-3) for full details. Interrupt Mask Enable When a flag is masked, it does not update the Interrupt Status Register or cause an INT_N interrupt to be asserted. 0 = unmask, 1 = mask. MASK[0] = mask control for UPD_UNLOCK MASK[1] = mask control for INT_INVALID MASK[2] = mask control for INT_CSUD MASK[3] = mask control for INT_TRANS_ERR MASK[4] = mask control for UPD_NON_AUDIO MASK[5] = mask control for UPD_CPY_N MASK[6] = mask control for UPD_DEEMPH MASK[7] = mask control for UPD_REC_FREQ
R10 INTMASK 0Ah
7:0
MASK[7:0]
00000000
w
PD Rev 4.1 September 2007 55
WM8804
REGISTER ADDRESS R11 INTSTAT 0Bh (read-only) BIT 0 LABEL
UPD_UNLOCK
Production Data DEFAULT DESCRIPTION UNLOCK Update Signal 0 = INT_N not caused by a toggle of UNLOCK flag 1 = INT_N caused by a toggle of UNLOCK flag INVALID Flag Interrupt Signal 0 = INT_N not caused by INVALID flag 1 = INT_N caused by INVALID flag INT_CSUD Interrupt Signal 0 = INT_N not caused by CSUD flag 1 = INT_N caused by CSUD flag TRANS_ERR Flag Interrupt Signal 0 = INT_N not caused by TRANS_ERR flag 1 = INT_N caused by TRANS_ERR flag NON_AUDIO Update Signal 0 = INT_N not caused by a toggle of AUDIO_N or PCM_N flags 1 = INT_N caused by a toggle of AUDIO_N or PCM_N flags CPY_N Update Signal 0 = INT_N not caused by a toggle of CPY_N flag 1 = INT_N caused a toggle of CPY_N flag DEEMPH Update Signal 0 = INT_N not caused by a toggle of DEEMPH flag 1 = INT_N caused by a toggle of DEEMPH flag REC_FREQ Update Signal 0 = INT_N not caused by a toggle of REC_FREQ flag 1 = INT_N caused by a toggle of REC_FREQ flag Audio Status Flag Recovered channel status bit-1. 0 = Data word represents audio PCM samples. 1 = Data word does not represent audio PCM samples. Non-PCM Flag Indicates that non-audio code (defined in IEC61937) has been detected. 0 = Sync code not detected. 1 = Sync code detected - received data is not audio PCM. Non-Copyright Flag Recovered Channel Status bit-2. 0 = Copyright is asserted for this data. 1 = Copyright is not asserted for this data. De-emphasis Flag Recovered Channel Status bit-3. 0 = Copyright is asserted for this data. 1 = Copyright is not asserted for this data.
1
INT_INVALID
-
2
INT_CSUD
-
3
INT_TRANS_ERR
-
4
UPD_NON_AUDIO
-
5
UPD_CPY_N
-
6
UPD_DEEMPH
-
7
UPD_REC_FREQ
-
R12 SPDSTAT 0Ch (read-only)
0
AUDIO_N
-
1
PCM_N
-
2
CPY_N
-
3
DEEMPH
-
w
PD Rev 4.1 September 2007 56
Production Data REGISTER ADDRESS BIT
5:4
WM8804
LABEL
REC_FREQ [1:0]
DEFAULT
--
DESCRIPTION Recovered Frequency Flag Indicates recovered S/PDIF clock frequency: 00 = 192kHz 01 = 96kHz or 88.2kHz 10 = 48kHz or 44.1kHz 11 = 32kHz Unlock Flag Indicates that the S/PDIF Rx clock recovery circuit is unlocked. 0 = Locked onto incoming S/PDIF stream. 1 = Not locked onto the incoming S/PDIF stream. Use Of Channel Status Block 0 = Consumer Mode 1 = Professional Mode The WM8804 is a consumer mode device. Detection of professional mode may give erroneous behaviour. Linear PCM Identification 0 = Data word represents audio PCM samples. 1 = Data word does not represent audio PCM samples. Copyright Information 0 = Copyright is asserted for Rx data. 1 = Copyright is not asserted for Rx data. Additional Format Information 0 = Recovered S/PDIF data has no preemphasis. 1 = Recovered S/PDIF data has pre-emphasis. Reserved for additional de-emphasis modes. Channel Status Mode 00 = Only valid mode for consumer applications. Category Code Refer to S/PDIF specification (IEC 60958-3) for full details. 0x00h indicates "general" mode. S/PDIF Source Number Refer to S/PDIF specification (IEC 60958-3) for full details. Channel Number For Sub-frame 1 00 = do not use channel number 01 = channel 1 to left channel 10 = channel 1 to right channel Channel Number For Sub-frame 2 00 = do not use channel number 01 = channel 2 to left channel 10 = channel 2 to right channel Indicated Sampling Frequency Refer to S/PDIF specification (IEC 60958-3) for full details.
6
UNLOCK
-
R13 RXCHAN1 0Dh (read-only)
0
CON/PRO
0
1
AUDIO_N
0
2
CPY_N
0
3
DEEMPH
0
5:4 7:6
Reserved CHSTMODE [1:0] CATCODE [7:0]
00 00
R14 RXCHAN2 0Eh (read-only) R15 RXCHAN3 0Fh (read-only)
7:0
00000000
3:0
SRCNUM [3:0] CHNUM1[1:0]
0000
5:4
00
7:6
CHNUM2[1:0]
00
R16 RXCHAN4
3:0
FREQ[3:0]
0001
w
PD Rev 4.1 September 2007 57
WM8804
REGISTER ADDRESS 10h (read-only) BIT 5:4 LABEL CLKACU[1:0] DEFAULT 11 DESCRIPTION
Production Data
Clock Accuracy of Received Clock 00 = Level II 01 = Level I 10 = Level III 11 = Interface frame rate not matched to sampling frequency. Maximum Audio Sample Word Length 0 = 20 bits 1 = 24 bits Note: see table in description of bits 3:1 of this register. Audio Sample Word Length 000: Word length not indicated RXWL[2:0] 001 010 100 101 110 MAXWL==1 20 bits 22 bits 23 bits 24 bits 21 bits MAXWL==0 16 bits 18 bits 19 bits 20 bits 17 bits
R17 RXCHAN5 11h (read-only)
0
MAXWL
1
3:1
RXWL[2:0]
000
All other combinations are reserved and should not be used. 7:4 ORGSAMP [3:0] CON/PRO 0000 Original Sampling Frequency Refer to S/PDIF specification (IEC 60958-3) for full details. Use Of Channel Status Block 0 = Consumer Mode 1 = Professional Mode (not supported by WM8804). Linear PCM Identification 0 = S/PDIF transmitted data is audio PCM. 1 = S/PDIF transmitted data is not audio PCM. Copyright Information 0 = Transmitted data has copyright asserted. 1 = Transmitted data has no copyright assertion. Additional Format Information 000 = Data from Audio interface has no preemphasis. 001 = Data from Audio interface has preemphasis. All other modes are reserved and should not be used. Channel Status Mode 00 = Only valid mode for consumer applications. Category Code Refer to S/PDIF specification (IEC 60958-3) for full details. 00h indicates "general" mode.
R18 SPDTX1 12h
0
0
1
AUDIO_N
0
2
CPY_N
0
5:3
DEEMPH[2:0]
000
7:6
CHSTMODE [1:0] CATCODE [7:0]
00
R19 SPDTX2 13h
7:0
00000000
w
PD Rev 4.1 September 2007 58
Production Data REGISTER ADDRESS R20 SPDTX3 14h BIT 3:0 LABEL SRCNUM [3:0] CHNUM1[1:0] DEFAULT 0000 DESCRIPTION
WM8804
Source Number Refer to S/PDIF specification (IEC 60958-3) for full details. Channel Number for Subframe 1 CHNUM1 00 01 10 11 Channel Status Bits[21:20] Function Do not use channel number Send to Left Channel Send to Right Channel Do not use channel number Channel Status Bits[23:22] Function Do not use channel number Send to Left Channel Send to Right Channel Do not use channel number
5:4
00
7:6
CHNUM2[1:0]
00
Channel Number for Subframe 2 CHNUM2 00 01 10 11
R21 SPDTX4 15h
3:0
FREQ[3:0]
0001
Indicated Sampling Frequency Refer to S/PDIF specification (IEC 60958-3) for full details. 0001 = Sampling Frequency not indicated. Clock Accuracy of Transmitted Clock 00 = Level II 01 = Level I 10 = Level III 11 = Interface frame rate not matched to sampling frequency. S/PDIF Transmitter Data Source 0 = S/PDIF Received Data - SPDIFTXCLK Source = CLK2 1 = Digital Audio Interface Received Data - SPDIFTXCLK Source = MCLK Input/Output Signal at MCLK Pin S/PDIF Transmitter Channel Status Data Source 0 = Received channel status data 1 = Transmit channel status registers Note : Only used if TXSRC=0 Maximum Audio Sample Word Length 0 = 20 bits 1 = 24 bits Audio Sample Word Length Used with MAXWL to indicate Tx word length 000 = Word length not indicated TXWL[2:0] 001 010 100 101 110 MAXWL==1 20 bits 22 bits 23 bits 24 bits 21 bits MAXWL==0 16 bits 18 bits 19 bits 20 bits 17 bits
5:4
CLKACU[1:0]
11
6
TXSRC
1
7
TXSTATSRC
0
R22 SPDTX5 16h
0
MAXWL
1
3:1
TXWL[2:0]
101
All other combinations reserved 7:4 ORGSAMP [3:0] 0000 Original Sampling Frequency Refer to S/PDIF specification (IEC 60958-3) for full details. PD Rev 4.1 September 2007 59
w
WM8804
REGISTER ADDRESS R23 GPO0 17h BIT 3:0 LABEL GPO0[3:0] DEFAULT 0000 DESCRIPTION
Production Data
Flags and Status bits available on GPO pins 0000 = INT_N 0001 = V 0010 = U 0011 = C 0100 = TRANS_ERR 0101 = SFRM_CLK 0110 = 192BLK 0111 = UNLOCK 1000 = NON_AUDIO 1001 = CSUD 1010 = DEEMPH 1011 = CPY_N 1100 = ZEROFLAG 1101 = 0 1111 = 0
R24 GPO1 18h
3:0
GPO1[3:0]
0111
R26 GPO2 1Ah
7:4
GPO2[3:0]
0100
Note: GPO1 and GPO2 is only available in 2wire software control mode. R27 AIFTX 1Bh 1:0 AIFTX_FMT[1:0] 10 Audio Data Format Select 11: DSP mode 10: I2S mode 01: Left justified mode 00: Right justified mode Audio Data Word Length Select 11: 24 bits 10: 24 bits 01: 20 bits 00: 16 bits BCLK Invert (for master and slave modes) 0 = BCLK not inverted 1 = BCLK inverted Right, left and I2S modes - LRCLK polarity and DSP mode select 1 = invert LRCLK polarity / DSP Mode B 0 = normal LRCLK polarity / DSP Mode A Audio Data Format Select 11: DSP mode 10: I2S mode 01: Left justified mode 00: Right justified mode Audio Data Word Length Select 11: 24 bits 10: 24 bits 01: 20 bits 00: 16 bits BCLK Invert (for master and slave modes) 0 = BCLK not inverted 1 = BCLK inverted
3:2
AIFTX_WL[1:0]
01
4
AIFTX_BCP
0
5
AIFTX_LRP
0
R28 AIFRX 1Ch
1:0
AIFRX_FMT[1:0]
10
3:2
AIFRX_WL[1:0]
01
4
AIFRX_BCP
0
w
PD Rev 4.1 September 2007 60
Production Data REGISTER ADDRESS BIT 5 LABEL AIFRX_LRP DEFAULT 0 DESCRIPTION
WM8804
Right, left and I2S modes - LRCLK polarity and DSP mode select 1 = invert LRCLK polarity / DSP Mode B 0 = normal LRCLK polarity / DSP Mode A Audio Interface Master/Slave Interface Select 0 = Slave Mode - LRCLK, BCLK are inputs 1= Master Mode - LRCLK and BCLK are outputs Status Register Select Determines which status register is to be read back: 000 = Interrupt Status Register 001 = Channel Status Register 1 010 = Channel Status Register 2 011 = Channel Status Register 3 100 = Channel Status Register 4 101 = Channel Status Register 5 110 = S/PDIF Status Register Continuous Read Enable 0 = Continuous read-back mode disabled 1 = Continuous read-back mode enabled `With Flags' Mode Select 0: `With Flags' Mode disabled 1: `With Flags' Mode enabled S/PDIF Receiver Word Length Truncation Mask 0 = disabled, data word is truncated as described in Table 44 S/PDIF Receiver Channel Status Register 5 1 = enabled, data word is not truncated. S/PDIF Receiver 192kHz Support Enable 0 = disabled, S/PDIF receiver maximum supported sampling frequency is 96kHz 1 = enabled, S/PDIF receiver maximum supported sampling frequency is 192kHz
6
AIF_MS
0
R29 SPDRX1 1Dh
2:0
READMUX [2:0]
000
3
CONT
0
4
WITHFLAG
0
6
WL_MASK
0
7
SPD_192K_EN
1
w
PD Rev 4.1 September 2007 61
WM8804
REGISTER ADDRESS R30 PWRDN 1Eh BIT 0 LABEL PLLPD DEFAULT 1 DESCRIPTION PLL Powerdown 0 = PLL enabled 1 = PLL disabled S/PDIF Receiver Powerdown 0 = S/PDIF receiver enabled 1 = S/PDIF receiver disabled
Production Data
1
SPDIFRXPD
1
2
SPDIFTXPD
1
S/PDIF Transmitter Powerdown 0 = S/PDIF transmitter enabled 1 = S/PDIF transmitter disabled Oscillator Power down 0 = Power Up 1 = Power Down Digital Audio Interface Power down 0 = Power Up 1 = Power Down Tri-state all Outputs 0 = Outputs not tri-stated 1 = Outputs tri-stated
3
OSCPD
0
4
AIFPD
0
5
TRIOP
0
w
PD Rev 4.1 September 2007 62
Production Data
WM8804
APPLICATIONS INFORMATION
RECOMMENDED EXTERNAL COMPONENTS
Figure 28 Recommended External Components for Hardware Control Mode
w
PD Rev 4.1 September 2007 63
WM8804
Production Data
Figure 29 Recommended External Components for Software Control Mode
w
PD Rev 4.1 September 2007 64
Production Data
WM8804
PACKAGE DIMENSIONS
DS: 20 PIN SSOP (7.2 x 5.3 x 1.75 mm) DM0015.C
b
20
e
11
E1
E
1
D
10
GAUGE PLANE
A A2
A1 -C0.10 C
SEATING PLANE
c
L L1
0.25
Symbols A A1 A2 b c D e E E1 L L1 REF: MIN ----0.05 1.65 0.22 0.09 6.90 7.40 5.00 0.55 0
o
Dimensions (mm) NOM --------1.75 0.30 ----7.20 0.65 BSC 7.80 5.30 0.75 1.25 REF o 4 JEDEC.95, MO -150
MAX 2.0 ----1.85 0.38 0.25 7.50 8.20 5.60 0.95 8
o
NOTES: A. ALL LINEAR DIMENSIONS ARE IN MILLIMETERS. B. THIS DRAWING IS SUBJECT TO CHANGE WITHOUT NOTICE. C. BODY DIMENSIONS DO NOT INCLUDE MOLD FLASH OR PROTRUSION, NOT TO EXCEED 0.20MM. D. MEETS JEDEC.95 MO-150, VARIATION = AE. REFER TO THIS SPECIFICATION FOR FURTHER DETAILS.
w
PD Rev 4.1 September 2007 65
WM8804 IMPORTANT NOTICE
Production Data
Wolfson Microelectronics plc ("Wolfson") products and services are sold subject to Wolfson's terms and conditions of sale, delivery and payment supplied at the time of order acknowledgement.
Wolfson warrants performance of its products to the specifications in effect at the date of shipment. Wolfson reserves the right to make changes to its products and specifications or to discontinue any product or service without notice. Customers should therefore obtain the latest version of relevant information from Wolfson to verify that the information is current.
Testing and other quality control techniques are utilised to the extent Wolfson deems necessary to support its warranty. Specific testing of all parameters of each device is not necessarily performed unless required by law or regulation.
In order to minimise risks associated with customer applications, the customer must use adequate design and operating safeguards to minimise inherent or procedural hazards. Wolfson is not liable for applications assistance or customer product design. The customer is solely responsible for its selection and use of Wolfson products. Wolfson is not liable for such selection or use nor for use of any circuitry other than circuitry entirely embodied in a Wolfson product.
Wolfson's products are not intended for use in life support systems, appliances, nuclear systems or systems where malfunction can reasonably be expected to result in personal injury, death or severe property or environmental damage. Any use of products by the customer for such purposes is at the customer's own risk.
Wolfson does not grant any licence (express or implied) under any patent right, copyright, mask work right or other intellectual property right of Wolfson covering or relating to any combination, machine, or process in which its products or services might be or are used. Any provision or publication of any third party's products or services does not constitute Wolfson's approval, licence, warranty or endorsement thereof. Any third party trade marks contained in this document belong to the respective third party owner.
Reproduction of information from Wolfson datasheets is permissible only if reproduction is without alteration and is accompanied by all associated copyright, proprietary and other notices (including this notice) and conditions. Wolfson is not liable for any unauthorised alteration of such information or for any reliance placed thereon.
Any representations made, warranties given, and/or liabilities accepted by any person which differ from those contained in this datasheet or in Wolfson's standard terms and conditions of sale, delivery and payment are made, given and/or accepted at that person's own risk. Wolfson is not liable for any such representations, warranties or liabilities or for any reliance placed thereon by any person.
ADDRESS:
Wolfson Microelectronics plc Westfield House 26 Westfield Road Edinburgh EH11 2QB United Kingdom
Tel :: +44 (0)131 272 7000 Fax :: +44 (0)131 272 7001 Email :: sales@wolfsonmicro.com
w
PD Rev 4.1 September 2007 66


▲Up To Search▲   

 
Price & Availability of WM8804

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X